Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen 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
Joined
Nov 3, 2004
Messages
4
Location
CA
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!!
 
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

Replies
43
Views
2K

Part and Inventory Search

Sponsor

Back
Top