ASE, SQL, OLE, ADE

ASE, SQL, OLE, ADE

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

remove xdata

551 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 (551 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'
>
>
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.