Need help in Plot Command on LISP Code

Discussion in 'AutoCAD' started by Vxc, Jun 29, 2004.

  1. Vxc

    Vxc Guest

    Hy Everybody !

    I am writing a Lisp Code Called "AutoPlot".

    The porpuse of this code is to select (Example : From Layout 1 to 5) and
    then a enter the number of copies of which Layout.

    I've already whote a code that does that, BUT its not very well "oiled the
    machine".

    In another words imagin that i select 2 Layout's 5 copies each, in the
    Spooler Window of the Plotter it will appear 10 Drawings in the list -> 2*5
    = 10 !

    You all now that in the Plot Dialog Box you can select the number of copies,
    if you select 5 and then plot the exact 2 Layout's it will appear in the
    Spooler only 2 Files but with the knowlodge that the plotter must print 5
    copies each.

    Sorry if the "history" is already long and confusing (hope not).

    Can anyone tell me who to white better code so i won't "Spam" the Spooler
    List ?

    Thanks

    Vasco Tavares
     
    Vxc, Jun 29, 2004
    #1
  2. Vasco,

    If you haven't already, you may want to look at the Plot object - it has a NumberOfCopies property. The Plot object is accessible through vlisp: (vla-get-Plot (vla-get-ActiveDocument (vlax-get-acad-object))) - (be sure to load vlisp first with (vl-load-com) ). You can find out more about the Plot object in the ActiveX and VBA Reference help.

    Peter
     
    petersciganek, Jun 30, 2004
    #2
  3. Vxc

    Vxc Guest

    Hy Peter !

    Thanks for the ideia, i don't progrmme with VLisp but i'll give it a
    try.I usaully use only AutoLisp.But thank you for the response.

    Vasco Tavares

    PS : Sorry about the delay on responding !!

    NumberOfCopies property. The Plot object is accessible through vlisp:
    (vla-get-Plot (vla-get-ActiveDocument (vlax-get-acad-object))) - (be sure to
    load vlisp first with (vl-load-com) ). You can find out more about the Plot
    object in the ActiveX and VBA Reference help.
     
    Vxc, Jul 3, 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.