Community
I know this is old but I was looking for an answer to this question as well. After playing around with the code listed above, varible must be in quotes. Also, the varible is expecting feet and inches but " means end of input. OP missed a \" after 1'-0. It should look like this:
(setvar "cannoscale" "1/4\" = 1'-0\"")