CADTutor: The best free help for AutoCAD on the web

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Go Back   AutoCAD Forums > AutoCAD > AutoLISP, VBA, the CUI & Customisation

Reply
 
Thread Tools
Old 4th Nov 2009, 09:58 am   #1
woodman78
Senior Member
 
Using: Civil 3D 2007
 
Join Date: Jul 2009
Posts: 112
Default Lisp for Page Setup

I have setup my title sheet so that the scale is linked to the viewport scale and plotscale using fields. This is because we plot a lot of our drawings at A3 for reports as well as using them at A1.

My question is can someone do a lisp that would set the page setup (my page setups are simply called A1 and A3) and would then regenall so that the fields get updated.

I would appreciate help on this.
Thanks.

"Some so-called open minds should be closed for repairs."
woodman78 is offline   Reply With Quote
Old 4th Nov 2009, 10:22 am   #2
woodman78
Senior Member
 
Using: Civil 3D 2007
 
Join Date: Jul 2009
Posts: 112
Default

Not to worry, I just got it.

I used this:

Code:
 
(defun c:A3 ()
(command "-plot" "n" "" "A3" "" "n" "y" "n")
(command "regenall")
(princ)
)
It does the trick alright

"Some so-called open minds should be closed for repairs."
woodman78 is offline   Reply With Quote
Old 4th Nov 2009, 01:41 pm   #3
ILoveMadoka
Full Member
 
Using: AutoCAD 2009
 
Join Date: Oct 2008
Posts: 51
Default

Can I ask a couple related questions here?

(1)
Using Detailed Plot Configuration..
I want to plot EVERY LAYOUT
How do I page through them all?
Sometimes I do not plot Model Space but only the Layouts..

(2)
I sometimes need to change printers and I'd like to have a routine for this.
Problem is they each have Path Names and some have spaces.
I don't know how to pass a name such as "\\MyServer\MyPrinter PCL"
The names are giving me problems.
Renaming is NOT an option (Corporate thingie!)

Thanks in advance!

You guys are awesome!!

Last edited by ILoveMadoka : 4th Nov 2009 at 01:41 pm. Reason: Revise
ILoveMadoka is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto LISP routine to assign Page Setup Ham007 AutoLISP, VBA, the CUI & Customisation 7 5th Mar 2009 04:56 pm
Lisp to import page setup Grigs AutoLISP, VBA, the CUI & Customisation 8 4th Feb 2009 03:25 am
Page setup takaki AutoCAD General 9 26th Oct 2008 07:23 pm
Page Setup nauggie AutoLISP, VBA, the CUI & Customisation 2 17th Jan 2007 12:05 am
Page Setup Tatu100 AutoCAD General 9 14th Aug 2006 01:43 pm

Why Donate?


All times are GMT +1. The time now is 11:29 am.

RSS Feed for AutoCAD ForumsValid XHTML 1.0!Valid CSS!Creative Commons Licence