i have a drawing that i know has xdata attached to layer zero. the problem is, it's not an object i can find. Does anyone have a routine to remove xdata from ALL objects. like a global remove xdata?
Thanks for any help!
Jd...
Hi,
what makes the problem having XData on layer 0?
Can you upload this drawing?
- alfred -
There's data on layer zero that's embedding unit information in the file. (english, vs metric) it came from a custom app, and i want a way to remove it! See attached file
Hi,
reading the XData from layer "0" does not show any XData.
So how did you check that?
What I see is that this drawing was modified by Civil3D (library version 8.0). If you want to get rid of this additional data there are options, but depending on what version of AutoCAD and what vertical product (based on AutoCAD) you have.
_WBLOCK and selecting the entities in modelspace (as long as you don't select a Civil3D-object) is one option that should work with all AutoCAD's.
- alfred -
@TherealJD wrote:There's data on layer zero that's embedding unit information in the file. (english, vs metric) it came from a custom app, and i want a way to remove it! See attached file
One way:
(defun strip_xdata (app ename / newid) (setq newid (list (list -3 (list app)))) (entmod (append (entget ename) newid)) ) (strip_xdata "CADTools" (tblobjname "layer" "0"))
Hi Jason,
have you really found xdata (EED) on Layer "0"?
- alfred -
@Alfred.NESWADBA wrote:Hi Jason,
have you really found xdata (EED) on Layer "0"?
- alfred -
Yes, from the application CADTools as the example showed.