Dbconnect ZOOM To Linked Object (ACCESS MDB)

Discussion in 'AutoCAD' started by Rudderdl, Nov 17, 2004.

  1. Rudderdl

    Rudderdl Guest

    Hello,

    I'm using ADO to get and manage all of my links for a link management interface in VBA. I have a table in my interface that I want to - on the click event - zoom to the CAD block object that the link is tied to. I have everything working fine and the correct link on the click event.

    All I need is a way to get the insertion point of the linked block so I can run a ZOOMTOCENTER from the insertion point. I am using the ObjectID of the link and am getting correct info from it. I just don't have any idea of how to get the insertion point of the block object it corresponds to.

    Any suggestions would be greatly appreciated.

    Don - In Austin, TX
     
    Rudderdl, Nov 17, 2004
    #1
  2. Rudderdl

    Rudderdl Guest

    Correction - I do not have the actual block ID of the Link... I have the link only.... need to get the block from the Link info...

    If I get the block ID I can manage geting the insertion point....

    Thanks in advance!
     
    Rudderdl, Nov 17, 2004
    #2
  3. Rudderdl

    Rudderdl Guest

    I figured it out... cycled thru the blocks selection to Match ObjectID of blocks with the links...

    on match used to get insertion...
     
    Rudderdl, Nov 17, 2004
    #3
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.