InsertBlock method

Discussion in 'AutoCAD' started by John, Jan 4, 2005.

  1. John

    John Guest

    When I use Insertblock method i'm getting this

    Command: Duplicate definition of block ADCADD_ZZ ignored.
    Duplicate definition of block _ArchTick ignored.

    At command line. I dont want to show above text at command line. is any
    code that not show above text when you run this code?

    Sub Example_InsertBlock()
    Dim insertionPnt(0 To 2) As Double
    insertionPnt(0) = 0#: insertionPnt(1) = 0#: insertionPnt(2) = 0#
    ' Insert the block
    Dim blockRefObj As AcadBlockReference
    insertionPnt(0) = 2#: insertionPnt(1) = 2#: insertionPnt(2) = 0
    Set blockRefObj = ThisDrawing.ModelSpace.InsertBlock(insertionPnt,
    "p:\drivename\test.dwg", 1#, 1#, 1#, 0)

    End Sub

    Thank you for you help.
     
    John, Jan 4, 2005
    #1
  2. hi,

    not beautiful, but set the variable "NOMUTT" to 1 and, after your inserted the block, back to 0, be careful that during 1 the user will not see any
    message and also if your function fails at any point before setting it back to 0, the user will not see anything within the command area anymore
    (until he restarts acad or sets the variable back while typing it blind), so make sure to have an "emergency exit" in which you set this variable
    back to 0.

    - alfred -
     
    Alfred NESWADBA, Jan 5, 2005
    #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.