Objecthandle in XDATA

Discussion in 'AutoCAD' started by Dieter Berger, Oct 7, 2004.

  1. Stumbled accros follwing problem
    Attached XDATA containing a reference group code 1005 = handle to
    another entity.
    Example a line contains a reference to a text entity

    After that I wblocked the entire drawing, reopened the drawing and
    read the line's xdata.
    Guess what I got, the handle was still there but (handent handle)
    returned nil. The text was still where it should be.

    Do I miss something ?

    Greetings
    Dieter
     
    Dieter Berger, Oct 7, 2004
    #1
  2. Dieter Berger

    Art Cooney Guest

    Does the text entity in the drawing created by the wblock have the same
    handle as the handle in the xdata? The drawing created by wblock can have
    different handles for the entities copied over. If the text entity's handle
    was changed, then the xdata handle in the xdata in the drawing created by
    the wblock should have been translated to the new handle for the text entity
    in that drawing. But, that translation might have failed for some reason.
     
    Art Cooney, Oct 7, 2004
    #2
  3. I've found that translation of entity handles doesn't always
    work (I don't recall the exact details unfortunately). For
    that reason, I don't use them. I use extension dictionaries
    and XRecords with object ids.
     
    Tony Tanzillo, Oct 7, 2004
    #3
  4. Tried in 2004: no problem with wblock.

    Pay attention the handles are all renamed.

    Handles in xdata are renamed too, accordly with
    the reference entity.

    HTH


    --

    Marc'Antonio Alessi
    http://xoomer.virgilio.it/alessi
    (strcat "NOT a " (substr (ver) 8 4) " guru.")

    --
     
    Marc'Antonio Alessi, Oct 7, 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.