Originally Posted by
chris.mackay434411
Ha! I told you it was something simple!!! many thanks.
A word of advice Chris, Anonymous names are very unpredictable , The number you specified after the "*U" would probably be something else entirely on another drawing session:
Best way to utilize that filter to write it to something like this
Code:
(setq ss (ssget "_X" ('(0 . "INSERT")'(2 . "RealName,`*U*"))))
Where RealName is the actual name of the Dynamic Block [AFAICT: it only applies to DB nowadays. not sure though] <Unless the blocks are converted to Anonymous block via vla-ConvertToAnonymousBlock function>
Then iterate thru the selection using vla-get-effectivename to capture the correct block
HTH
EDIT: Or from some converted drawing to and fro using other CAD products [Civil 3D/Revit...]