How can I remove all of the extended entity data from an object? I thought maybe vl-remove and then entmod-ing back but that doesn't seem to work.
Thanks,
Jason Self
|
How can I remove all of the extended entity data from an object? I thought maybe vl-remove and then entmod-ing back but that doesn't seem to work.
Thanks,
Jason Self
found it here:
http://forums.autodesk.com/t5/ASE-SQ...data/m-p/43345
I use something like this:
Code:(defun c:DelX ( / appID ss ) ;; © Lee Mac ~ 16.06.10 (setq appID "APP") ; Application Name (if (setq ss (ssget "_:L" (list (list -3 (list appID))))) ( (lambda ( i / ent ) (while (setq ent (ssname ss (setq i (1+ i)))) (LM:RemoveXData ent appID) ) ) -1 ) ) (princ) ) (defun LM:RemoveXData ( entity appID ) ;; © Lee Mac ~ 26.05.10 (if (assoc -3 (entget entity (list appID))) (entmod (list (cons -1 entity) (list -3 (list appID)))) ) )
Thanks. I'm surprised to see you on AUGI, your a legend with the guys in my office that frequent CAD Tutor.
Hehe thanks, I feel honoured
A started an account on here a while back, just thought I'd stop by