ASE, SQL, OLE, ADE

Reply
*Jody
Message 1 of 2 (40 Views)

Can you strip an object of its Xdata?

40 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 (40 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?
>
>

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community