ASE, SQL, OLE, ADE

Reply
*Nickels, Mark
Message 1 of 2 (528 Views)

remove xdata

528 Views, 1 Replies
01-14-2000 10:26 AM
Hi,
Can all xdata be removed from all entities in a drawing? Please let me know
how.
Thanks,
Rene'
*Chikahiro, MASAMI
Message 2 of 2 (528 Views)

Re: remove xdata

01-30-2000 08:55 PM in reply to: *Nickels, Mark
Hi.
Please refer blowe code:

(defun remove_xdata ( / sset i n elist )
(setq sset (ssget "X") i 0 n (sslength sset))
(while (< i n )
(setq elist (entget (ssname sset i)))
(entmod (append elist '((-3 ("YOUR_APP" ))))) ;<- here!
(setq i (1+ i))
)
(princ)
)

If you want to remove all application data at once,
substitute above code like this:
'((-3 ("YOUR_APP1")("YOUR_APP2") ...))

Offcause you shouldn't remove "ACAD" group.
It's allright?

MASAMI,Chikahiro

Mark Nickels wrote in message
news:85nq1m$qfa5@adesknews2.autodesk.com...
> Hi,
> Can all xdata be removed from all entities in a drawing? Please let me
know
> how.
> Thanks,
> Rene'
>
>
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.