Get Blocks from a DWG to another

Discussion in 'AutoCAD' started by perispipo, Oct 15, 2004.

  1. perispipo

    perispipo Guest

    Hi all,
    I need to insert a block via VBA from a closed DWG file an opened DWG file.

    I've found the instruction

    ThisDrawing.ModelSpace.InsertBlock(insPntb, "c:\XXXX.DWG", 1, 1, 1, 0)

    but I would like not to import the entire DWG as a block, but get a specific block from then XXXX.DWG file

    Is it Possible?

    Ric
     
    perispipo, Oct 15, 2004
    #1
  2. In addition to any replies you might receive or already
    received, you may find more information or responses
    by posting future VBA related questions in the following
    discussion group:

    By NNTP discussion group reader at
    news://discussion.autodesk.com/autodesk.autocad.customization.vba

    By HTTP (web-based) interface at
    http://discussion.autodesk.com/forum.jspa?forumID=33


    --
    Autodesk Discussion Group Facilitator



    specific block from then XXXX.DWG file
     
    Jason Piercey, Oct 15, 2004
    #2
  3. perispipo

    Doug Broad Guest

    Yes. But first, you are posting in the wrong NG for
    VBA help.

    Look into using ObjectDBX to open the file read-only.

    Also, non-programmatic access is available via the
    design center.
     
    Doug Broad, Oct 15, 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.