Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set Annotation Scale via LISP?

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
1516 Views, 5 Replies

How to set Annotation Scale via LISP?

I'm trying to figure out how to create a function to set the annotation scale and so far no luck. Does anyone know why this isn't working?

(Defun c:HLGCSCALE48 ( / )
(setvar cannoscale "1/4\" = 1'-0")
(princ)
)

Any help would be appreciated.

Thanks,
Tags (1)
5 REPLIES 5
Message 2 of 6
dgorsman
in reply to: Anonymous

Is it expecting the second number to be 1'-0, or 1'-0"? You may need to escape a second double-quote in there.
----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 3 of 6
drudder
in reply to: Anonymous

Autodesk refuses to admit this is a bug and they even refer to it as a "wish list" item... I have managed a programmatical fix... The fix is VBA and the code is located in the following thread:




Thread #630218
Message 4 of 6
krispy
in reply to: Anonymous

as dgorsman said, you escaped the first double quote, but not the second
Message 5 of 6
masscis
in reply to: krispy

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\"")

Message 6 of 6
nwbos
in reply to: Anonymous

-

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost