PDA

View Full Version : Pint macro button


keepviper13
23-05-2006, 12:45 PM
I'm trying to create a tool bar button in 2006 that will plot and use "previous plot style" and then close the file. I have jobs that require me to re-print 30 or more drawings at a time and would like to be able to open them all and then basically just keep pressing one button to print and close each drawing. I'm new to programing in auto cad but i've got the button created and I can't seem to figure out the macro string required to do what i'm looking for.
What i've got so far [code] ^C^C_plot;quit [code]
seems like it should be simple enough but i can't seem to get it to select the previous plot style and actually print. I've tried two ";" and that will bring up a second plot window instead of printing.
Exactly what i want it to do
-plot
-select previous plot style
-print
-close
-no save

Eddie
23-05-2006, 11:02 PM
:080402gud Here is what I do when I want to create a button macro..I run throught the steps on the command prompt to work out what needs to go into the code.
Here is an example..

Command: -plot
Detailed plot configuration? [Yes/No] <No>: y
Enter a layout name or [?] <3001-4312>:
Enter an output device name or [?] <AE27_DC450C (file://AE27_DC450C/)>: AE27_DC450C.pc3 (file://AE27_DC450C.pc3/)
Enter paper size or [?] <Letter (8.5 x 11")>: A3 (297 x 420mm)
Enter paper units [Inches/Millimeters] <Millimeters>:
Enter drawing orientation [Portrait/Landscape] <Landscape>:
Plot upside down? [Yes/No] <No>:
Enter plot area [Display/Extents/Limits/View/Window] <Extents>:
Enter plot scale (Plotted Millimeters=Drawing Units) or [Fit] <1:2>: fit
Enter plot offset (x,y) or [center] <Center>:
Plot with plot styles? [Yes/No] <Yes>:
Enter plot style table name or [?] (enter . for none) <G3 - MATL HANDLING.ctb>: a3.ctb
Plot with lineweights? [Yes/No] <Yes>:
Scale lineweights with plot scale? [Yes/No] <Yes>:
Plot paper space first? [Yes/No] <No>: yes
Remove hidden lines? [Yes/No] <No>:
Write the plot to a file [Yes/No] <N>:
Save changes to layout [Yes/No]? <N>
Proceed with plot [Yes/No] <Y>:


Resulting in the following code.
^C^C-plot;y;;AE27 DC450C.PC3;A3 (297 x 420mm);;;;fit;;;A3.ctb;;;yes;;;;;

But for what you want to do you could also do this with a script, do search in this forum as this has been answered previously.

And it could also be done with a batch plotter, have you considered using a batch plotter ?

keepviper13
24-05-2006, 02:46 PM
i was unaware that the "-plot" command was different than "_plot". This tip deffinately helped out. I couldn't figure out how to code in the network printer since its path starts with "\\". So i used a different way.
Just to share in case anybody else searches for this my code ended up looking like this
^C^C-plot;n;;previous plot;;n;n;y;close;

I will sometimes have to do a regular plot first this way but in the grand scheme when i'm printing 200 at one time taking an extra minute to set it up is still going to save a lot of time.

Again thanks for the help

Eddie
24-05-2006, 10:03 PM
IF you are plotting that many drawings then look at using a btach plotter as it will do all the work for you and speed up the process considerably.