For part of a routine that I am working on, I need to temporarily explode mleaders, I have tried both of the following:
(setq SS (ssget "_X" (list (cons 0 "MULTILEADER"))))
(cond
(SS
(while (setq Ent (ssname SS 0))
(setq Obj (vlax-ename->vla-object Ent))
(vla-explode Obj)
(ssdel (ssname SS 0) SS)
)
)
)
(setq SS (ssget "_X" (list (cons 0 "MULTILEADER"))))
(cond
(SS
(command "._explode" SS "")
)
)
Neither one seems to work correctly, especially with mleaders with blocks attached to them, any ideas?