AbdRF Posted February 11, 2020 Share Posted February 11, 2020 Hi, 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.blkdata.lspBlock data sample.dwg Thanks Quote Link to comment Share on other sites More sharing options...
BIGAL Posted February 12, 2020 Share Posted February 12, 2020 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) (progn (foreach att blk 'getattributes) (setq tlst (cons (vla-get-textstring att))) ) ) (setq blst (cons tlst blst)) Quote Link to comment Share on other sites More sharing options...
AbdRF Posted February 27, 2020 Author Share Posted February 27, 2020 On 2/12/2020 at 7:53 AM, BIGAL said: 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) (progn (foreach att blk 'getattributes) (setq tlst (cons (vla-get-textstring att))) ) ) (setq blst (cons tlst blst)) Thanks @BIGAL Will try it out Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.