Toolbar Command

Discussion in 'AutoCAD' started by smmason, Oct 5, 2004.

  1. smmason

    smmason Guest

    I am have a brain lock and cannot seem to get the SCALE command to work in a toolbar. Trying to Automate scale process.

    ^c^cscale;\;;\;r;45;60;
    It will not enter in the R for reference.

    In addition, why does (\ 60 45) return 1?
     
    smmason, Oct 5, 2004
    #1
  2. Too many semicolons. A command name or option needs a space or semicolon
    after it, but a \ doesn't need that to "register" it. So the first
    semicolon after a \ completes the selection set at a single item. And the \
    for picking the base point should be followed immediately by the r for the
    reference option. Also, a return is supplied at the end without a
    semicolon, unless the last character is a control character of some kind, or
    unless you need two to finish a command. Try this and see if it works (I
    haven't tested it):

    ^c^cscale;\;\r;45;60

    The other one is something I often forget about. When you divide only
    "pure" integers, you get an integer result. Make at least one of them a
    real number to get a real number result. (And use / instead of \...)

    (/ 60.0 45)

    Kent Cooper, AIA


    ...
     
    Kent Cooper, AIA, Oct 5, 2004
    #2
  3. smmason

    ecable Guest

    ^C^C_scale;\;\r;45;60;
    (/ 60.0 45.0) For 1.3333
    (/ 60 45) For 1
    Try this
     
    ecable, Oct 5, 2004
    #3
  4. smmason

    SMMASON Guest

    Thanks to both of you for the reply. I was not able to get the toolbar command to work. However, placing the zero after the numbers did the trick. Wrote a quick lisp to automate routine. Go figure, its always the small things. Again thanks.
     
    SMMASON, Oct 5, 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.