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

Cannoscale Question

2 REPLIES 2
Reply
Message 1 of 3
ASCunningham
613 Views, 2 Replies

Cannoscale Question

Why can I set the scale in model space for cannoscale with this:
(if (= (getvar "useri1") 96)(setq cannoscl "1/8\" = 1'-0\""))(setvar "cannoscale" cannoscl)

but the same string in paperspace doesn't work. I get this message:
error: AutoCAD variable setting rejected: "cannoscale" "1/8\" = 1'-0\""
2 REPLIES 2
Message 2 of 3
ASCunningham
in reply to: ASCunningham

I guess that in paperspace the cannoscale in to be 1:1? I think what I need to do is set the viewport annotation scale. Anyone have a way of doing this through lisp?
Message 3 of 3
jefft
in reply to: ASCunningham

Yes, if you have a problem with running a lisp, when in paperspace, you will need to temporarily go to modelspace or mspace to allow your lisp to keep going without getting the error.

 

(if (= (getvar "tilemode") 0) (command "mspace"))

or

(if (= (getvar "tilemode") 0) (setvar "tilemode" 1))

 

then run the rest of your lisp, then set back.

 

(command "pspace")

or

(setvar "tilemode" 0)

 

Jeff Tippit

SPAUG President

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

Post to forums  

Autodesk Design & Make Report

”Boost