insert block from drawing

Discussion in 'AutoCAD' started by Daniel Wirth, Jun 9, 2004.

  1. Daniel Wirth

    Daniel Wirth Guest

    Hello everybody

    I´ve got a problem with inserting Blocks. I like to insert a block into a drawing (lets call it newdrawing.dwg), no problem so far, i do this by e.g.
    Set helpref = ThisDrawing.ModelSpace.InsertBlock(insertpoint, "c:\drawing1.dwg", 5, 5, 5, 0)
    Because there is a block in the inserted drawing i now have a block called "drawing1" and one called "testblock1" like i named the block in the drawing1.dwg.
    All right so far.
    The Problem is that i want to insert the "testblock1"-block, because only this one has the insertionpoint i want to use in my newdrawing.dwg.
    but the "helpref"-reference is just a blockreference to the block "drawing1". Is there a possibility to access the "testblock1"-block?
    I just need the name of the block from the drawing.
    I hope i didn´t wrote to confuse ;)

    Thank you
     
    Daniel Wirth, Jun 9, 2004
    #1
  2. Iterate the BLOCK table for the block's definition
    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jun 9, 2004
    #2
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.