+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Senior Member
    Using
    Civil 3D 2010
    Join Date
    Jul 2009
    Posts
    280

    Default Lisp for Page Setup

    Registered forum members do not see this ad.

    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.

  2. #2
    Senior Member
    Using
    Civil 3D 2010
    Join Date
    Jul 2009
    Posts
    280

    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

  3. #3
    Senior Member ILoveMadoka's Avatar
    Using
    AutoCAD 2009
    Join Date
    Oct 2008
    Posts
    150

    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 12:41 pm. Reason: Revise

Similar Threads

  1. Auto LISP routine to assign Page Setup
    By Ham007 in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 5th Mar 2009, 03:56 pm
  2. Lisp to import page setup
    By Grigs in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 4th Feb 2009, 02:25 am
  3. Page setup
    By takaki in forum AutoCAD General
    Replies: 9
    Last Post: 26th Oct 2008, 06:23 pm
  4. Page Setup
    By nauggie in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 16th Jan 2007, 11:05 pm
  5. Page Setup
    By Tatu100 in forum AutoCAD General
    Replies: 9
    Last Post: 14th Aug 2006, 01:43 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts