Jump to content

Recommended Posts

Posted

It should highlight the line at which the program breaks - are you loading it from the VLIDE also?

Posted

Sorry not used VLIDE.

 

What im doing:

Open up drawing with block,

vlide - set to break on error

autocad - run macatt hit X

Choose block, choose directory

Vlide reports error

Vlide - ctrl+F9 - above error.

 

Sorry for my ignorance ;)

Posted

Not a problem Monk, only, it is quite difficult for me to locate the error, as I cannot reproduce it - I'm thinking it might be the Excel part, but I am also using 2007 and have no problems.

 

Try this:

 

-- Open VLIDE

-- File > New File (Ctrl+N)

-- Copy Code into new file window

-- Debug > Break on Error (ticked)

-- Load Code: Tools > Load Text in Editor (Ctrl+Alt+E)

-- In AutoCAD: MacAtt at Command Line > Enter (or X)

-- Choose Block, Choose Directory

-- Back to VLIDE: Debug > Last Break Source (Ctrl+F9)

-- Line causing error should be highlighted

 

Hopefully this helps!

Posted
All i get is _1$ appear...

 

Yes, this appears when it errors, then you should be able to go to last break source and it should be highlighted in the editor window. Make sure you reset after error also, by Debug > Reset to Top Level.

Posted

I SEE! I feel like a noob now ;)

 

(vla-GetInterfaceObject *acad
     (if (< (setq acVer (atoi (getvar "ACADVER"))) 16) "ObjectDBX.AxDbDocument"
       (strcat "ObjectDBX.AxDbDocument." (itoa acVer))
     )
   )

Thats whats highlighted

 

I presume this needs to be changed to suit 2011?

Posted

Ah! the ObjectDBX part...

 

Curious, what does this return at the command line for you:

 

(atoi (getvar 'acadver))

Posted

Ok, Could you try running this please also:

 

(defun c:test ( / result )

 (print
   (setq result
     (vla-getInterfaceObject (vlax-get-acad-object) "ObjectDBX.AxDbDocument.18")
   )
 )
 (vlax-release-object result)

 (princ)
)

 

Hopefully it should print something like:

 

#<VLA-OBJECT IAxDbDocument 0e437dc8>

Posted

I saved the above code to test.lsp

loaded

 

Command: test
; error: Automation Error. Problem in loading application

Posted

I thought that might happen :(

 

But, now I'm stuck - is there anyone else using ACAD2011 getting this error with ObjectDBX?

Posted

I can reinstall my old version of cad and give it a whirl if you want me to isolate that its an 11 problem?

Posted
I can reinstall my old version of cad and give it a whirl if you want me to isolate that its an 11 problem?

 

I wouldn't want you to go out of your way just for my application, but I leave it up to you :)

Posted

Im just browsing through my new 2011 bible so ill get it installing while im reading ;)

Posted
Im just browsing through my new 2011 bible so ill get it installing while im reading ;)

 

Thanks for your time investigating this :)

Posted
Works fine in 2010. So guess its a 2011 issue?

 

I guess so - it would be interesting to see if others using 2011 also receive the error.

 

PS> Thanks for taking the time to test it, appreciated. :)

Posted

No problemo, I appreciate the time you spend putting together the lisps! One day ill find time to learn it.

Posted

There is a very nice 'Block Attribute Global Processor v2000-2011' which you can download from 'www.cadavista.com'

 

Mac Lukas

  • 1 month later...
Posted

Hi Lee,

 

Great tool thank you it helped me a lot. One question, would it be possible when exporting to have the object handle id also in the excel?

this would allow us to edit the attributes in excel and than use the "attin" command to import the informations back into the drawing :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...