I think I have the worlds most basic lsp to set dimension styles and just can't get it to run when called from another routine.
My code;
Code:
(defun c:10mm ()
(setvar "DIMSCALE" 10)
(COMMAND "-DIMSTYLE" "SAVE" "10mm" "y")
)
I want it to override the current version of 10mm dimstyle so I need the "y".
The problem arises at the "y" bit, as below;
Command: 10mm
Current dimension style: STANDARD Annotative: No
Unable to recognize command "y". Please try again."y"
However if I just paste the line containing the "y" as below at the command line, it works fine.
(COMMAND "-DIMSTYLE" "SAVE" "10mm" "y")
Any suggestions??