How is XData Set/Get using ObjectDBX?

Discussion in 'AutoCAD' started by clarence_rollins, Dec 4, 2004.

  1. The following line returns an empty array:

    MyObject.GetXData "MYXDATA", avarXDataType, avarXDataValue

    This worked with AutoCAD 2004 and ObjectDBX. It does not work with AutoCAD 2005 and ObjectDBX.
     
    clarence_rollins, Dec 4, 2004
    #1
  2. Should work the same.
    Maybe your MyObject is empty to begin with
    or MYXDATA has a spelling error.
    Check your references and your dims
     
    Jorge Jimenez, Dec 4, 2004
    #2
  3. clarence_rollins

    TomD Guest

    If you want to check the actual object's data (simply and reliably) from the
    command line, try the following:

    (entget (car (entsel)) '("*"))

    will show all of the data, albeit in DXF type format
     
    TomD, Dec 6, 2004
    #3
  4. It turned out to be a misplaced 'Exit For' statement.

    The loop exited on the first object that did not contain the particular XData Application.
     
    clarence_rollins, Dec 8, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.