Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I made function to get all block attributes.
(defun C:PrintAttr ( / ) (setq blockName (car (entsel))) (setq blockName (entnext blockName)) (while (not (eq (cdr (assoc 0 (setq dxf (entget blockName)))) "SEQEND")) (print (cdr (assoc 2 dxf))) (setq blockName (entnext blockName)) ) (princ) )
For it to work you need to select block, but I need to get attributes of block definition and not block object. Here are no inserted block in drawing. How could I get attributes from block definition if it is defined in drawing but not inserted in drawing.
Solved! Go to Solution.