Block insert?

Discussion in 'AutoCAD' started by KingCAD, May 10, 2004.

  1. KingCAD

    KingCAD Guest

    Okay, I searched and could not find the answer. It seems as though I'm doing it correct, but it isn't working - here's the code anybody know why it's not working?//
    Dim VarInspHold As Variant
    Dim StrBrdrName As String
    VarInspt(0) = 0#
    VarInspt(1) = 0#
    VarInspt(2) = 0#
    StrBrdrName = "H:\CADADMIN\BLOCKS\AFORMAT.dwg"
    ThisDrawing.ModelSpace.InsertBlock VarInspt, StrBrdrName, 2.5, 2.5, 2.5, 0
    I have tried several different ways and can't seem to get it to work, I get an invalid procedure or callout error.

    Thanks
    Dave. K
     
    KingCAD, May 10, 2004
    #1
  2. KingCAD

    Wayne Craig Guest

    Dave,

    Could be that you need to dim the variable for the insertion point:

    Dim VarInspt(2) as Double

    Wayne

    doing it correct, but it isn't working - here's the code anybody know why
    it's not working?//
    get an invalid procedure or callout error.
     
    Wayne Craig, May 10, 2004
    #2
  3. KingCAD

    KingCAD Guest

    What a moron!! I did have the insertion point dimensioned, but as a variant - I changed it to be a double and it works fine.
    Thanks
    KingMORON.
    If ya can't laugh at yourself,
    You need a break.
     
    KingCAD, May 10, 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.