PS LT Scale lsp

Discussion in 'AutoCAD' started by tstright, Jul 12, 2004.

  1. tstright

    tstright Guest

    I want to cance the psltscale to 0 in all layouts...

    Here's what I got...It hangs on me...

    (defun c:psltscale ( )
    (foreach x (layoutlist)
    (command "layout" "set" x)
    (command "psltscale" "0" "")
    )
    )
     
    tstright, Jul 12, 2004
    #1
  2. tstright

    andywatson Guest

    change (command "psltscale" "0" "")
    to (command "psltscale" "0")

    If you type each command at the command line you would see the following...

    Command: layout

    Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] <set>: set

    Enter layout to make current <Layout1>: layout1
    Restoring cached viewports - Regenerating layout.

    Command: psltscale

    Enter new value for PSLTSCALE <0>: 0

    Command:
    PSLTSCALE
    Enter new value for PSLTSCALE <0>:

    ...that last "" made AutoCAD think you had hit <enter> after your command was already finished, causing it to think you wanted to issue another "PSLTSCALE" command.
     
    andywatson, Jul 12, 2004
    #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.