Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

ModeMacro & Acad.lsp

Status
Not open for further replies.

tinotino

Structural
Nov 3, 2004
4
How Can I put a system variable in Modemacro in Acad.lsp.
My Autocad "fatalerror" when I open a drawing.

In my acad.lsp:
(command "modemacro" "LTS= &(getvar,ltscale)")
;0r
(setvar "modemacro" "LTS= &(getvar,ltscale)")

Help me please

PS:excuse my bad english P-) i'm a french canadian!!
 
Replies continue below

Recommended for you

Try this:
(setvar "modemacro" (strcat "LTS=" (rtos (getvar "ltscale"))))
 
Thank you, but for AuoUpdate the variable I used DIESEL fonction

(setvar "modemacro" (strcat "LTS=" "$(rtos,$(getvar,ltscale))"))
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor