Convert menu source into SendCommand

Discussion in 'AutoCAD' started by Anthony Ryan, Mar 19, 2005.

  1. Anthony Ryan

    Anthony Ryan Guest

    Hi all and thanks for any help,

    I have a 'mns' file for some custom menus, but I'm wish to convert
    these into
    VB code to be used in a toolbar in a OCX along with accont16.arx
    (I am using AutoCAD 2004).

    The mns code that I wish to convert is ^C^C-insert "HV_Pole Existing"
    \1 1 0


    I know how to insert BlockReferences into drawings at a coordinate
    using
    ThisDrawingModelSpace.InsertBlock & ThisDrawing.Utility.GetPoint
    methods,
    but I would like to keep the same feel to the user and also when the
    Block is
    inserted into the drawing you can see the block at the crosshairs.
    Where as the ThisDrawingModelSpace.InsertBlock &
    ThisDrawing.Utility.GetPoint methods you do not get to see this
    preview.

    Can anybody please help?

    Anthony.
     
    Anthony Ryan, Mar 19, 2005
    #1
  2. Anthony Ryan

    Anthony Ryan Guest

    I have found a solution.

    "^C^C-insert TR_Pole Existing" & vbCr & "(command pause 1 1 0)" & vbCr

    Thanks
    Anthony
     
    Anthony Ryan, Mar 20, 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.