Hello to everyone,
I need a lisp routine which will change blocks with “Annotative property” to “Non-Annotative”.
I found the following lisp which does what I described before, but is not that “user-friendly”.
Can someone re-arrange it, in order to work as a “proper/normal” lisp?
for example: (defun c:test () …..)
In addition, I would be grateful if someone can add to this lisp routine the option to choose between a specific and a all drawing blocks (including nested blocks).
Thank you in advance,
(defun LM:annotativeblock ( blk flg )
(and (setq blk (tblobjname "block" blk))
(progn
(regapp "AcadAnnotative")
(entmod
(append (entget (cdr (assoc 330 (entget blk))))
(list
(list -3
(list
"AcadAnnotative"
'(1000 . "AnnotativeData")
'(1002 . "{")
'(1070 . 1)
(cons 1070 (if flg 1 0))
'(1002 . "}")
)
)
)
)
)
)
)
)
examples:
(LM:annotativeblock "Div_A_BL_P_RoomTag" nil)
(LM:annotativeblock "Div_A_BL_M_DatumLevel_Plan" nil)
(LM:annotativeblock "Div_A_BL_M_ColumnGridMarker" nil)
Attaching example drawing: