insert block (inserting specific block from dwg file

Discussion in 'AutoCAD' started by ahcivil, Aug 17, 2007.

  1. ahcivil

    ahcivil Guest

    Hi
    I am a new user of VBA in AutoCAD
    just creating library of blocks,
    is it possible to use insertblock command to insert a specific block
    from a dwg file assuming that I have multiple blocks in my dwg file.
    somthing like:
    dim BlockName as string
    set BlockName= "C:\Models.dwg???blockname???"
    ThisDrawing.ModelSpace.InsertBlock(varBase, BlockName, 1, 1, 1, 0)
     
    ahcivil, Aug 17, 2007
    #1
  2. ahcivil

    Figmint Guest

    yes it is possible but it would take less code, and as such less run
    time if you split the blocks into there own files.
     
    Figmint, Aug 29, 2007
    #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.