Dimscale - Command or Sysvar?

Discussion in 'AutoCAD' started by bthatcher, Apr 5, 2005.

  1. bthatcher

    bthatcher Guest

    I am trying to use the Dimscale value as a multiplier, I am having trouble getting the value. I get the error 'no function definition: DIMSCALE*'. Here is the code:

    (SETQ DSCL (GETVAR "DIMSCALE"))

    and in another lisp I set it using:

    (command "dimscale" "96")

    Which makes me wonder if it is a Command or a Sysvar, it is listed as a variable. And that is the same way I get the value of other variables like 'OSMODE'.
    How can I use the Dimscale value in a Lisp? Thanks.
     
    bthatcher, Apr 5, 2005
    #1
  2. bthatcher

    Adesu Guest

    Hi bthatcher
    (setvar "DIMSCALE" 96)
    "Dimscale" in not command,it system variable


    getting the value. I get the error 'no function definition: DIMSCALE*'.
    Here is the code:
    variable. And that is the same way I get the value of other variables like
    'OSMODE'.
     
    Adesu, Apr 6, 2005
    #2
  3. bthatcher

    Tom Smith Guest

    Dimscale is a variable, like osmode and many others. However. for quite a few versions now it has been possible to set system variables by typing their names -- before that we had to use the setvar command. So I'd say that all the sysvars are also commands now, in a sense. You can set them through the (command) function, though I think it's more clear if you use (setvar) and (getvar) on them.
     
    Tom Smith, Apr 6, 2005
    #3
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.