Jump to content

Modification of block data export lisp

Recommended Posts


I am using this awesome lisp to export block details (Name,coordinates,rotation,etc).I need it to also give attribute value with column heading as tag name.
Attached Image shows the present data given by lisp. I am also attaching the lisp file and sample dwg with attribute block.



Block data sample.dwg


Share this post

Link to post
Share on other sites

Something like this use tagstring for getting tag name. This is not tested. May need tlst reversed. Easiest to test on real dwg.


(setq tlst '())
(if (vlax-property-available-p blk 'attributes)
(foreach att  blk 'getattributes)
     (setq tlst (cons (vla-get-textstring att)))
(setq blst (cons tlst blst))




Share this post

Link to post
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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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