Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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?

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...