Loading a block

Discussion in 'AutoCAD' started by Joe Sutphin, Jun 14, 2004.

  1. Joe Sutphin

    Joe Sutphin Guest

    Does anyone know how to load a block into the drawing database without
    actually inserting it into drawing? TIA.

    Joe
    --
     
    Joe Sutphin, Jun 14, 2004
    #1
  2. Joe Sutphin

    Jeff Mishler Guest

    Sure. But since you know alot more about coding than I, I will just explain
    how I'd go about it.... :)
    Use ObjectDBX to access the database of the source drawing for the block.
    Collect all of the entities into an array.
    Use the Add method to the Blocks Collection of the destination drawing, then
    use CopyObjects method to place the objects from the source block to the
    destination block.

    Alternatively, you could use the InsertBlock method and then immediately
    delete the block......

    Jeff
     
    Jeff Mishler, Jun 14, 2004
    #2
  3. Joe Sutphin

    Joe Sutphin Guest

    I wouldn't necessarily say that's true.

    Thanks for the ideas, I was hoping it might be a bit easier though. I'll
    give it a try.

    Joe
    --


     
    Joe Sutphin, Jun 14, 2004
    #3
  4. You could insert a blank drawing with block definition into your drawing,
    block comes with it. Too simplistic??

    Paul
     
    Paul Richardson, Jun 15, 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.