Send command

Discussion in 'AutoCAD' started by cmedinag, Mar 14, 2005.

  1. cmedinag

    cmedinag Guest

    How do i use send command? i have to move one point to another place, modifying the object that is part of it.. i think the command name is stretch.. can anyone tell me its properties and how to call it from VBA? thanks!
     
    cmedinag, Mar 14, 2005
    #1
  2. Hi,

    It is best to avoid Sendcommand if you can.

    It you have a polyline then all you need do is get its coordinates and
    replace the one you would have stretched from with the new one.

    If a line, simply replace the end coordinates etc.

    If you have to use Sendcommand, then you should carefully document the
    keystrokes you do at the command line to perform the command and repeat them
    in the commandstring you pass with Sendcommand..

    Most likely you will spend quite a bit of time getting the carriage returns
    correct.

    You could end up with something like:
    dim sCmd as String
    sCmd = "Stretch 30.3456,20.5432 78.3495,40.3451 65.3455,98.345 "
    Thisdrawing.Sendcommand sCmd
    where the coordinate pairs represent the locations you need to pick to run
    the command. Of course you may get that data in other ways in your program,
    but that is essentially what you need to do.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au



    modifying the object that is part of it.. i think the command name is
    stretch.. can anyone tell me its properties and how to call it from VBA?
    thanks!
     
    Laurie Comerford, Mar 14, 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.