Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 2
LouCancilla
508 Views, 1 Reply

Remove XData

Does anyone have any lisp or vlisp code to remove object xdata on a selection set. Previously I have been using ACISOUT & ACISIN commands to strip this.

Thanks
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: LouCancilla

(defun strip_xdata (ss)

size=2>
  (setq sscnt 0)

  (repeat (sslength ss)

    (setq ename (ssname ss
sscnt))
    (setq ent (entget ename))
  
 (setq newid (list "<Your Application goes here"))
  
 (setq newid (list (list -3 newid)))
    (entmod (append
ent newid))
    ;The following will also strip the xdata for
database links

    ; (setq newid (list
"DCO15"))
    ; (setq newid (list (list -3
newid)))  
    ; (entmod (append ent
newid))

    (setq sscnt (1+
sscnt))

  )
);end defun
strip_xdata


 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Does
anyone have any lisp or vlisp code to remove object xdata on a selection set.
Previously I have been using ACISOUT & ACISIN commands to strip this.

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost