• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    ASE, SQL, OLE, ADE

    Reply
    *Jody

    Can you strip an object of its Xdata?

    38 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?
    Please use plain text.
    *Marchetto, Eugene

    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?
    >
    >
    Please use plain text.