I'm attempting to make a macro / toolbar button which will initiate the offset command and set the offset based on cannoscale.
Code:
^C^C^Roffset;$M=$(if,$(=,$(getvar,cannoscale),"1/32" = 1'-0""),24”,(if,$(=,$(getvar,cannoscale),"1/16" = 1'-0""),12”,(if,$(=,$(getvar,cannoscale),"1/8" = 1'-0""),6”,(if,$(=,$(getvar,cannoscale),"1/4" = 1'-0""),3”,1")
Gives me this result.
Code:
Command: offset
Current settings: Erase source=No Layer=Source OFFSETGAPTYPE=0
Specify offset distance or [Through/Erase/Layer] <Through>: $M==
Requires numeric distance, two points, or option keyword.
I guess the first question is, is it possible to create an IF statement where the "false" is another diesel expression?
thanks
--c
Sidenote, I don't recall choosing a forum name? Is there a way to change it?