ShelleyM Posted March 4, 2009 Share Posted March 4, 2009 Hi, I have a routine that I copied from one of your forums, not sure if it is lisp? Anyway, it is supposed to set the linetype variables to 1, but I would also like it to regenall. And can anyone tell me if I can use this in a button or is it supposed to be placed in the command line? I am really new to this so all help is greatly appreciated! I am using Autocad Architectural 2009. Thanks, Shelley ;sets msltscale, ltscale & psltscale=1 for all layouts (defun c:layoutltscale ( / lay ct) (setq ct (getvar "ctab")) (setvar "ltscale" 1) (setvar "msltscale" 1) (foreach lay (layoutlist)(command "_layout" "_Set" lay "_mspace" "psltscale" 1)) (setvar "ctab" ct) );defun Quote Link to comment Share on other sites More sharing options...
uddfl Posted March 4, 2009 Share Posted March 4, 2009 Welcome to the forum! To add regenall, just add (command "regenall") to the code. to put the whole function in a button, make this the button macro: ^c^c_layoutltscale Quote Link to comment Share on other sites More sharing options...
ReMark Posted March 4, 2009 Share Posted March 4, 2009 Yes, it is a Lisp routine. The name of the routine is indicated after the letter . Might I suggest you become familiar with lisp by directing you to our AutoCAD FAQ section? Look in category 10: Customization. The topic you want is entitled How do I use a Lisp routine?" This article will tell you how a lisp routine can be run from the command line. Yes, you could also assign this routine to a button. Have you ever created a button? Have you done any customization at all? Quote Link to comment Share on other sites More sharing options...
ShelleyM Posted March 4, 2009 Author Share Posted March 4, 2009 Thank you Uddfl and ReMark! You are both kind to be so helpful, and yes I have done lisp and made buttons but it has been almost 11 years (in school)! I really enjoyed lisp back then, but never got back into it, and literally forgot it all. Now I thought I would try to play again, and I will definetly take both of your suggestions. Shelley Quote Link to comment Share on other sites More sharing options...
VVA Posted March 5, 2009 Share Posted March 5, 2009 Linetype scale in paperspace question Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.