adding number of copies to a plotting script?

Discussion in 'AutoCAD' started by geo2geo, Jul 21, 2003.

  1. geo2geo

    geo2geo Guest

    I tried everything I know to extract the setvar for number of copies with no success so far
    can anyone help
    here's the script

    TILEMODE 0
    LTSCALE 1
    PSLTSCALE 1
    REGENALL
    PSPACE
    ZOOM E
    -PLOT
    YES

    R1-Oce-9600-BOND-30
    30X42
    INCHES
    LANDSCAPE
    NO
    WINDOW 0,0 42,30
    1=1
    0,0
    YES
    O-JBS_STD.ctb
    YES
    NO
    YES
    NO
    NO
    Y
     
    geo2geo, Jul 21, 2003
    #1
  2. Set up a separate pc3 file for the printer with the custom properties set for the number of copies that you want. You could have any number of pc3 files with different numbers of copies. Not as neat as being able to set the number of copies from the command line but there you go, a "work-around".



     



    Dave Alexander



    "geo2geo" <> wrote in message news:...

    I tried everything I know to extract the setvar for number of copies with no success so far
    can anyone help
    here's the script

    TILEMODE 0
    LTSCALE 1
    PSLTSCALE 1
    REGENALL
    PSPACE
    ZOOM E
    -PLOT
    YES

    R1-Oce-9600-BOND-30
    30X42
    INCHES
    LANDSCAPE
    NO
    WINDOW 0,0 42,30
    1=1
    0,0
    YES
    O-JBS_STD.ctb
    YES
    NO
    YES
    NO
    NO
    Y
     
    Dave Alexander, Jul 21, 2003
    #2
  3. geo2geo

    geo2geo Guest

    are you sure there is no setvar for number of copies?
    how come it ask you all the questions when you go -plot detailed and it skips only the line about number of copies
    is there a reason autodesk?
     
    geo2geo, Jul 22, 2003
    #3
  4. geo2geo

    geo2geo Guest

    nop it's not working pc3's do not save number of copies
     
    geo2geo, Jul 22, 2003
    #4
  5. Ran into the same problem.



    Simply solved it in my own lisp routine that creates the printing/plotting script.



    I give the number of copies and the script file is being extended with the number of prints i need.



    In Your case it would look like this:



    -first print-



    TILEMODE 0
    LTSCALE 1
    PSLTSCALE 1
    REGENALL
    PSPACE
    ZOOM E
    -PLOT
    YES



    R1-Oce-9600-BOND-30
    30X42
    INCHES
    LANDSCAPE
    NO
    WINDOW 0,0 42,30
    1=1
    0,0
    YES
    O-JBS_STD.ctb
    YES
    NO
    YES
    NO
    NO
    Y



    -second print-



    TILEMODE 0
    LTSCALE 1
    PSLTSCALE 1
    REGENALL
    PSPACE
    ZOOM E
    -PLOT
    YES



    R1-Oce-9600-BOND-30
    30X42
    INCHES
    LANDSCAPE
    NO
    WINDOW 0,0 42,30
    1=1
    0,0
    YES
    O-JBS_STD.ctb
    YES
    NO
    YES
    NO
    NO
    Y



    -etcetera---



    It's not the most elegant way, but it works and thats what its all about.



     



    Jan



    "geo2geo" <> schreef in bericht news:...

    I tried everything I know to extract the setvar for number of copies with no success so far
    can anyone help
    here's the script

    TILEMODE 0
    LTSCALE 1
    PSLTSCALE 1
    REGENALL
    PSPACE
    ZOOM E
    -PLOT
    YES

    R1-Oce-9600-BOND-30
    30X42
    INCHES
    LANDSCAPE
    NO
    WINDOW 0,0 42,30
    1=1
    0,0
    YES
    O-JBS_STD.ctb
    YES
    NO
    YES
    NO
    NO
    Y
     
    Jan van de Poel, Jul 22, 2003
    #5
  6. geo2geo

    SMMASON Guest

    What I did was to create a custom plot command via lisp called plt2.lsp. In it I used the repeat function. The variable is set via user input. All the user needs to do is go the a custom pulldown menu and select one item on the list. The item, in turn via code, determines which printer to print to and what color table to use.
     
    SMMASON, Jul 22, 2003
    #6
  7. geo2geo

    SMMASON Guest

    I threw this together: If will prompt you to enter the number of copies with the max number of copies being 15. I could not test with your plotter and color table.

    (defun c:plt2 (/ xplta)
    (pltnum)
    (repeat xplta (command "-PLOT" "YES" "" "R1-Oce-9600-BOND-30" "30X42" "INCHES" "LANDSCAPE" "NO" "WINDOW" "0,0" "42,30" "1=1" "0,0" "YES" "O-JBS_STD.ctb" "YES" "NO" "YES" "NO" "NO" "Y"))
    )

    (defun pltnum ()
    (setq numplt (getint "\nEnter Number of Plots <1>: "))
    (if (= numplt nil) (setq xplt 1) (setq xplt numplt))
    (if (<= xplt 15) (setq xplta xplt) (setq xplta 15))
    )
     
    SMMASON, Jul 22, 2003
    #7
  8. Son of a Gun!  I tried it with saving a pmp as well as a pc3 and you are right. It doesn't work. I also tried changing the properties on my windows system printer and no go.



     



    Have you looked at the batch plot program that comes with AutoCAd? I am pretty sure that you can set the number of copies in that one.



     



    Dave Alexander



     



    "geo2geo" <> wrote in message news:...

    nop it's not working pc3's do not save number of copies
     
    Dave Alexander, Jul 22, 2003
    #8
  9. No it doesn't.
    For collating, I would create plot files and then use a "print plot files"
    program of which there are a few out there and just set them in order to
    print.

    Dave Alexander
     
    Dave Alexander, Jul 28, 2003
    #9
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.