Executing AutoCAD commands from VBA

Discussion in 'AutoCAD' started by JFord, Dec 7, 2004.

  1. JFord

    JFord Guest

    How do I execute AutoCAD commands from VBA. Currently I'm wanting to write a routine in VBA which will execute the "Change Space" command (Under Express menu, Layout tools).
    Thanks
     
    JFord, Dec 7, 2004
    #1
  2. JFord

    Peterg Guest

    ThisDrawing.SendCommand "chspace" & vbCr


    Peter
     
    Peterg, Dec 7, 2004
    #2
  3. Hi,

    Just be careful that you do not continue your code as the Sendcommand does
    not necessarily complete before your code continues running.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Dec 7, 2004
    #3
  4. JFord

    JFord Guest

    Thanks everybody for the help. You gave me just what I needed.
     
    JFord, Dec 8, 2004
    #4
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.