Jump to content

Global Attribute Editor & Extractor


Lee Mac

Recommended Posts

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 ;)

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

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...