PDA

View Full Version : Sellecting Only Annotative Blocks



randyshoemaker
2009-08-20, 05:57 PM
Does anyone know of or has a routine/program that only sellect annotative blocks? I have a drawing that has annotative blocks along with blocks that do not need to be annotative. I need to filter out those that are not annotative so that I can globally set the scales the same for all annotative blocks.

Thanks,

Randy S.

ccowgill
2009-08-20, 09:03 PM
Does anyone know of or has a routine/program that only sellect annotative blocks? I have a drawing that has annotative blocks along with blocks that do not need to be annotative. I need to filter out those that are not annotative so that I can globally set the scales the same for all annotative blocks.

Thanks,

Randy S.
I dont know if there is one out there, but you could try modifying this portion of code:


(if (setq blockset (ssget "_x" '((0 . "INSERT"))))
(progn
(setq count 0)
(while (< count (sslength blockset))
(setq blockitem (ssname blockset count)
blockdata (entget blockitem '("AcadAnnotative"))
)

you could make your code something to the effect that if blockdata returns nil, exclude it from the new selection set, if not, dont

it works in a text program I have that checks to see if text is annotative or not.

keithc03
2012-06-20, 12:20 PM
did you manage to perform this and select the anno blocks
as I need to do similar --select all anno items and set their anno scale

Keith