Xref Blocks

Discussion in 'AutoCAD' started by Mike Daugird, Apr 8, 2004.

  1. Mike Daugird

    Mike Daugird Guest

    I have a electrical drawing which has the HVAC as an xref overlay.
    in the HVAC drawing is a block which has attributes.
    I want to be able to pick the hvac block and get its attributes.
    Problem is when I pick it, I get the entire HVAC xref.
    when I use getsubentitiy I get the line of the block definition not the block ref.

    I will post a sample drawing in the customer-files section.
    thanks
     
    Mike Daugird, Apr 8, 2004
    #1
  2. Mike Daugird

    Ed Jobe Guest

    Have you tried searching this ng for "attributes"? I'm sure you will find
    tons of code. Also, check out help on the HasAttributes property.
     
    Ed Jobe, Apr 8, 2004
    #2
  3. Mike Daugird

    Ed Jobe Guest

    And when you pick the subentity, all objects have an OwnerID property
    inherited from the IAcadObject interface. You can use that with
    ThisDrawing.Utility.ObectIdToObject and examine its type to see if its a
    blockref.
     
    Ed Jobe, Apr 8, 2004
    #3
  4. Mike Daugird

    Mike Daugird Guest

    that is not correct.
    I have tried that and it returns the block definition not the block ref.
     
    Mike Daugird, Apr 8, 2004
    #4
  5. Mike Daugird

    Mike Daugird Guest

    Solved, I needed the context data
     
    Mike Daugird, Apr 8, 2004
    #5
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.