From what I've gathered from the help files in Vlisp, the way to extract attributes from a block is via:
Code:
RetVal = object.GetAttributes()
How do I add this to my code (below), and how do I define the selection set I've created and which attributes to extract?
If all the blocks listed aren't present, will that cause a problem? For that, should I add an "or" operator?
Btw, do I need this?:
Routine so far:
Code:
(defun c:aavtest (/ SelSet )
(vl-load-com)
(setq SelSet (ssget "x" '((0 . "INSERT" )
(2 . "BARREL_ANCHOR,SPRING_LOAD,LIVE_END,DEAD_END,EYEBOLT_ASSEMBLY,INT_ANGLE,TERM_ANGLE,TERM_TUBE,INT_POST" ))))
(princ)
)
Thanks for any advice!