Inserting a drawing as a block - what's wrong with this code?

Discussion in 'AutoCAD' started by Leonard Johnson, Jul 30, 2004.

  1. I'm having trouble inserting a drawing as a block. Could someone tell me
    what's wrong with this code.

    Sub PHAlites2()

    ' Insert the block phalites2

    Dim blockRefObj As AcadBlockReference
    Set blockRefObj.Name = "F:\Projects\7000.00 -
    Reference\CUST-LSP\phalites2"
    Blockname = blockRefObj
    blockRefObj = Block.InsertBlock.Name(0, 0, 0, "F:\Projects\7000.00 -
    Reference\CUST-LSP\phalites2", 1#, 1#, 1#, 0)

    ZoomAll

    End Sub
     
    Leonard Johnson, Jul 30, 2004
    #1
  2. Thanks, but how do I determine the insertion point?
     
    Leonard Johnson, Jul 30, 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.