I was about to make some dynamic blocks, for different type of devices. Then I was wondering if I want to count the different items in my drawing, and many items use the same block name. Is there a way to find the block state in VBA and LSP?
The values of the custom parameters are exposed via Active X (they show
up for editing in the Properties window, unless you choose to suppress
I posted some info on this topic on 22 March. You can look there for
more specifics, or just dump a dynamic block & look for yourself.
Command: (setq obj (vlax-ename->vla-object (car (entsel))))
Command: (setq proplist (vlax-safearray->list (vlax-variant-value
(((_> (vla-getdynamicblockproperties obj))))
(# # # #)
Command: (vlax-dump-object (car proplist))
; IAcadDynamicBlockReferenceProperty: AutoCAD Dynamic Block Property