Script to run page setup

Discussion in 'AutoCAD' started by dhorton, Jun 9, 2004.

  1. dhorton

    dhorton Guest

    Hello,

    I've had a trawl through past discussions but haven't found what i'm looking for.
    What I need is some guidance on whether I can create a script that would change various page setups to a standard one.
    Can this be done using solely script routines? or do I have to start using LISP (i'm not au fait with LISP, so if I have to go down this route then help would be appreciated)
    Would I need to create a template file as a point of reference?


    Thanks in advance,

    Dom
     
    dhorton, Jun 9, 2004
    #1
  2. dhorton

    Steve Doman Guest

    Dom,

    I usually setup a drawing on the network which contains all of our
    standard pagesetups. Then I run the Pageset command in each layout and
    Import the setups from that network file as needed.

    The AutoLISP code below will iterate through each paperspace layout and
    run the Pagesetup command. Edit the arguments to command function below
    as you see fit. If you want to batch process drawings, just add the lisp
    code to your script.

    (foreach layout (vl-remove "Model" (layoutlist))
    (command "pagesetup" ... fill in this as you prefer)
    )

    Steve Doman
     
    Steve Doman, Jun 9, 2004
    #2
  3. dhorton

    dhorton Guest

    Thanks Steve for your reply
     
    dhorton, Jun 29, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.