modifying pagesetups

Discussion in 'AutoCAD' started by martin, Feb 26, 2004.

  1. martin

    martin Guest

    how can i change the printer-name and the ctb-file for pagesetups of
    existing layouts through lisp?
    martin
     
    martin, Feb 26, 2004
    #1
  2. martin

    Munch Guest

    how can i change the printer-name and the ctb-file for pagesetups of
    Have your lisp routine reference the page setup with a drawing. I made this
    where by typing in 12x18, it automatically loads the setup including
    plotter, paper size and ctb file.

    (defun C:12x18d()
    (command "-psetupin" "s:/plotting/pagesetupsoce.dwg" "12x18-oce")
    (prin1))
     
    Munch, Feb 26, 2004
    #2
  3. martin

    martin Guest

    ok, i understand there are named pagesetups which can be created, and also
    original layout pagesetups like *layout1*, but is it to possible modify the
    pagesetup with lisp without importing it from another drawing?
    martin
     
    martin, Feb 27, 2004
    #3
  4. martin

    tsigwing Guest

    (command "-plot" "y" "" printer sheetsize "i" "l" "n" "e" "1:1" "" "y" ctbfile "y" "n" "n" "n" "n" "y" "n")


    where printer, sheetsize and ctbfile are whatever you want them to be.
     
    tsigwing, Feb 27, 2004
    #4
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.