ASE, SQL, OLE, ADE

ASE, SQL, OLE, ADE

Reply
*Jody
Message 1 of 2 (44 Views)

Can you strip an object of its Xdata?

44 Views, 1 Replies
01-30-2003 06:48 AM
I'm working with InRoads for Autocad and the labels that are created by
inroads are text with an Xdata ID that allows inroads to identify its labels
apart from other text. The problem is that I've copied some of this text
and changed it, but anytime that inroads deletes its labels, my copied text
gets deleted. Is there any way to strip an existing object of its xdata so
that I won't keep losing my text?
*Marchetto, Eugene
Message 2 of 2 (44 Views)

Re: Can you strip an object of its Xdata?

01-31-2003 09:21 PM in reply to: *Jody
If you are using VB (VBA), you can use this method (Assuming the xdata
application name is called "InRoads")

Dim xData1(0) As Integer
Dim xdata2(0) As Variant
Dim Ent As AcadEntity
xData1(0) = 1001
xdata2(0) = "InRoads"
ThisDrawing.Utility.GetEntity Ent, p, "Select Object: "
Ent.SetXData xData1, xdata2

Even easier, there was (is) an Express tools that has a command called
"xdlist" (or something like that, I do not have it on my computer) that
allows you to view, add and detatch xdata without programming.

Hope this helps

Dreamcad
Gene Marchetto
973-728-3928
dreamcad@optonline.net






"Jody" wrote in message
news:B002A357D5E6347E8E8112436133DC2D@in.WebX.maYIadrTaRb...
> I'm working with InRoads for Autocad and the labels that are created by
> inroads are text with an Xdata ID that allows inroads to identify its
labels
> apart from other text. The problem is that I've copied some of this text
> and changed it, but anytime that inroads deletes its labels, my copied
text
> gets deleted. Is there any way to strip an existing object of its xdata
so
> that I won't keep losing my text?
>
>
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.