I am having a difficult time translating diesel macros to a lisp command.
I have:
^C^C^C_-layer SET;E-UTILITY;;-insert;"BLOCK-NAME";S;$M=$(/,1,$(getvar,cannoscalevalue));
When I create a lisp, I use (getvar "cannoscale"), it still comes in at a different size than the one used from macro. What am I missing with the $'s / and 1?
Solved! Go to Solution.
Solved by Shneuph. Go to Solution.
Looks like you may need to use
(/ 1.0 (getvar "cannoscale"))
ah yes.. try
(/ 1.0 (getvar "cannoscalevalue"))
@Shneuph wrote:ah yes.. try
(/ 1.0 (getvar "cannoscalevalue"))
I overlooked that one myself. I had that and then just copied and pasted your response and thought nothing of it. Kept getting the same response til I noticed I was missing a " ) " on the line. Works great now.
I appreciate your help.
BTW, what does the slash and 1 represent?
You are dividing the 1 by the cannoscalevalue (which is a decimal). e.g. cannoscalevalue for 1/4"=1'-0" is 0.0208333. 1/0.0208333 = 48
I thought the slash might represent dividing but wasn't sure how it played into the cannoscale.
Thanks!