1
AutoLISP (Vanilla / Visual) / Re: purge everything but layers
« Last post by 3dwannab on Today at 07:21:05 PM »As an aside, note that the purgeall method will also skip Multileader Styles when purging a drawing - this is a known bug.Wow, 12 years on and this bug remains.
I guess this will have to do:
Code: [Select]
;; Purge using vla and normal method to purge MULTILEADERS as there's a bug with that using the vla method.
(setq doc (vla-get-activedocument (vlax-get-acad-object)))
(repeat 3 (vla-purgeall doc))
; Purge MULTILEADERS (no prompt), the above code doesn't purge MULTILEADERS. Known bug: https://www.theswamp.org/index.php?topic=42854.msg480733#msg480733
(command "_.PURGE" "_MU" "*" "_N")