This program seems very easy to understand. However, I am having some trouble. In all the other examples the plotter is shown \\\\hp ...etc. But this is what autocad returns when I use the -plot command. Also, it prints exactly the way I need it to when I use the -plot command and follow these prompts. So how do I enter the plotter and paper size information for these two. I have several other pc3 for other sizes but I think if you can help me on at least these two the others I could probably figure out. Also, what is the purpose of the loginname? Why do I need it? Do you have to login before using the pd command? Thank you so much, rchurch6
Code:
This is a full print:
Command: -plot
Detailed plot configuration? [Yes/No] <No>: y
Enter a layout name or [?] <1S1.1b>:
Enter an output device name or [?] <TDS400 24x36.pc3>:
Enter paper size or [?] <Oce D+ 24x36 in>:
Enter paper units [Inches/Millimeters] <Inches>:
Enter drawing orientation [Portrait/Landscape] <Landscape>:
Plot upside down? [Yes/No] <No>:
Enter plot area [Display/Extents/Layout/View/Window] <Layout>:
Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <1:1>:
Enter plot offset (x,y) <0.00,0.00>:
Plot with plot styles? [Yes/No] <Yes>:
Enter plot style table name or [?] (enter . for none) <Full.ctb>:
Plot with lineweights? [Yes/No] <Yes>:
Scale lineweights with plot scale? [Yes/No] <No>:
Plot paper space first? [Yes/No] <No>:
Hide paperspace objects? [Yes/No] <No>:
Write the plot to a file [Yes/No] <N>:
Save changes to page setup [Yes/No]? <N>
Proceed with plot [Yes/No] <Y>:
Effective plotting area: 23.94 wide by 35.94 high
Effective plotting area: 14.70 wide by 17.84 high
Plotting viewport 2.
Effective plotting area: 10.37 wide by 8.62 high
Plotting viewport 3.
Plotting viewport 1.
Code:
This is a half size 24x36 print:
Command: -plot
Detailed plot configuration? [Yes/No] <No>: y
Enter a layout name or [?] <1S1.1b>:
Enter an output device name or [?] <TDS400 24x36 Half.pc3>:
Enter paper size or [?] <Oce B+ 12x18 in>:
Enter paper units [Inches/Millimeters] <Inches>:
Enter drawing orientation [Portrait/Landscape] <Landscape>:
Plot upside down? [Yes/No] <No>:
Enter plot area [Display/Extents/Layout/View/Window] <Layout>:
Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <1:2>:
Enter plot offset (x,y) <0.00,0.00>:
Plot with plot styles? [Yes/No] <Yes>:
Enter plot style table name or [?] (enter . for none) <Half.ctb>:
Plot with lineweights? [Yes/No] <Yes>:
Scale lineweights with plot scale? [Yes/No] <No>:
Plot paper space first? [Yes/No] <No>:
Hide paperspace objects? [Yes/No] <No>:
Write the plot to a file [Yes/No] <N>:
Save changes to page setup [Yes/No]? <N>
Proceed with plot [Yes/No] <Y>:
Effective plotting area: 17.94 wide by 11.94 high
Effective plotting area: 8.92 wide by 7.35 high
Plotting viewport 2.
Effective plotting area: 4.31 wide by 5.18 high
Plotting viewport 3.
Plotting viewport 1.
Hi,
Thanks for the text screen information for -plot. That is exactly what I need to help you configure your settings. I won't be able to get it back to you until after five. The purpose of the login name is so you can setup plotter config settings for different users and still have one lisp file. If you are the only user I can help you with that too.
Later,
Terry Cadd
I will be 1 of 7 users but we will all be using the same plotter. The only difference comes at plotting time. Whether it is going to be a full or half size print. We have pc3s set up as plotter in a plotters folder like the above mentioned. The most often used are 24x36, 24x36 Half, 30x42 and 30x42 Half. They are all the same plotter, TDS400, just the paper sizes change, plotstyle changes from full.ctb to half.ctb, and scale changes from 1:1 to 1:2. Everything else remains the same as far as landscape.... etc.
I will look for your reply after five.
Here it is at five something. Note that the names of the Oce Plotter-D and Oce Plotter-B for the Plotter$ / Plotter Display Name must be slightly different so you can pick one or the other in a drop down list. I'll be here for a few, if you have any questions. Paste this below the cond statements regarding different users login names if you will all be using the same plotters and printers.
Terry
Code:
(setq *PlotterInfo@ (list ;Varable Names ;Usage and Specifications
(list "Plotter" ;Icon$ ;Icon, Printer or Plotter
"Oce Plotter-D" ;Plotter$ ;Plotter Display Name
"TDS400 24x36.pc3" ;PlotDevice$ ;Plot Device Name, per available choices
"D-Size" ;PaperSize$ ;Paper Size, A-Size thru D-Size
"Oce D+ 24x36 in" ;MediaSize$ ;Media Size, per available choices
"N" ;Flip$ ;Flip Plot, Y or N
"0,0" ;Offset$ ;Offset, C or x,y coordinates
);list
(list "Plotter" ;Icon$ ;Icon, Printer or Plotter
"Oce Plotter-B" ;Plotter$ ;Plotter Display Name
"TDS400 24x36 Half.pc3";PlotDevice$ ;Plot Device Name, per available choices
"B-Size" ;PaperSize$ ;Paper Size, A-Size thru D-Size
"Oce B+ 12x18 in" ;MediaSize$ ;Media Size, per available choices
"N" ;Flip$ ;Flip Plot, Y or N
"0,0" ;Offset$ ;Offset, C or x,y coordinates
);list
;Add additional plotter lists as required per each AutoCAD department.
));list;setq
(setq *PlotStyles@ (list "Full.ctb" "Half.ctb"));Revise as required.
Cool!!
I got it to print the layouts in the file I had open but when I do multi-select from a folder it does not work. This is what autocad returns: (I cut it a little to save some space)
Code:
Command: PD
Plot Drawings
Command:
Select a drawing in a folder to Plot Folder:
Command:
Multi-select Drawings to plot:
Command: FileOpen
Enter name of drawing to open <I:\2PA\Mainsail Apts\MS1S1.1.dwg>:
"I:\2PA\Mainsail Apts\MS1S1.1.dwg"
Opening an AutoCAD 2000 format file.
Substituting [simplex.shx] for [SCAD.shx].
Resolve Xref "X_BORDER": .\X_BORDER.dwg
"X_BORDER" loaded: I:\2PA\Mainsail Apts\X_BORDER.dwg
"X_BORDER" reference file may have changed since host drawing was last saved.
Resolve Xref "X_FND NOTES": .\X_FND NOTES.dwg
"X_FND NOTES" loaded: I:\2PA\Mainsail Apts\X_FND NOTES.dwg
"X_FND NOTES" reference file may have changed since host drawing was last saved.
Resolve Xref "X_BK-BD1-KEYPLN": I:\2PA\Mainsail Apts\X_BK-BD1-KEYPLN.dwg
"X_BK-BD1-KEYPLN" loaded.
"X_BK-BD1-KEYPLN" reference file may have changed since host drawing was last saved.
Resolve Xref "X_FTG SCHED": .\X_FTG SCHED.dwg
"X_FTG SCHED" loaded: I:\2PA\Mainsail Apts\X_FTG SCHED.dwg
"X_FTG SCHED" reference file may have changed since host drawing was last saved.
Regenerating layout.
Regenerating model.
Command:
Mine looks like the following. Let's see, did you add (load "PlotDwgs") to your AcadDoc.lsp or other AutoLISP file that loads your stuff. Are you getting all that xref stuff every time you open a drawing? I have a feeling that you're going to debug this and figure it out.
Terry
I get the xref and regenerate everytime I open a file with xrefs. I tried debugging but I don't get an error it just quits and doesn't send it to the plotter. I can have multiple dwgs open and print all the layouts of open dwgs. But, I can not get it to open and plot all the layouts.
Am I debugging properly? Here are the steps:
I type VLIDE at the command prompt and the Visual Lisp window will open.
In the Visual Lisp Window, open the file plotdwgs.lsp from wherever it is being run.
In the Visual Lisp Window, under the Debug pull-down menu, check the "Break on error" option.
In the Visual Lisp Window, under the Tools pull-down menu, select "load text in editor".
In the Visual Lisp Window, under the Window pull-down menu, select "Activate AutoCAD".
In AutoCAD type "pd" at the command prompt followed by an enter key.
When an error occurs I should be taken back to Visual Lisp and under the Debug pull-down menu, I then select "Last break source".
But it does not take me back. I have to go back to Visual Lisp and click "last break source".
At which point I get a window that pops up and it says ":CALLBACK-ENTRY"
rchurch6,
There is a short tutorial in AutoCAD help for "Using Visual LISP Debugging Tools". The one that I thing will help you is titled "Setting a Breakpoint and Using More Watches". Also the one for "Watching Variables As You Step Through a Program" is good to read upon.
Terry
I'm having problems with the PlotDwgs utility.
I adjusted the code but it keeps giving me:
Code:
Unknown command "I". Press F1 for help.
Unknown command "L". Press F1 for help.
Unknown command "N". Press F1 for help.
Unknown command "E". Press F1 for help.
Unknown command "F". Press F1 for help.
Unknown command "C". Press F1 for help.
Unknown command "Y". Press F1 for help.
Unknown command "monochrome.ctb". Press F1 for help.
Unknown command "Y". Press F1 for help.
Unknown command "PD". Press F1 for help.
Unknown command "N". Press F1 for help.
Unknown command "N". Press F1 for help.
Unknown command "Y". Press F1 for help.
The code is in the attachment.
Could anyone help on this one?
I'm quite confused because Help files don't say anything about this.
Hi Kakarot,
I think you might need to use the metric version of PlotDwgs.lsp.
The only thing that I noticed in your pdf version was that you need
to take out the \ backslashes in your lists where they are not needed.
Here is what I think will work on your system.
Code:
(setq *LoginName$ (strcase (getvar "LOGINNAME")));LoginName in all caps
(cond
((member *LoginName$ (list "MARCO" "DAVOR" "DANKO"));AutoCAD department 1
(setq *PlotterInfo@ (list ;Varable Names ;Usage and Specifications
(list "Plotter" ;Icon$ ;Icon, Printer or Plotter
"OKI C830(PCL)" ;Plotter$ ;Plotter Display Name
"OKI C830(PCL)" ;PlotDevice$ ;Plot Device Name, per available choices
"A-Size" ;PaperSize$ ;Paper Size, A-Size thru D-Size
"A3 297x420" ;MediaSize$ ;Media Size, per available choices
"N" ;Flip$ ;Flip Plot, Y or N
"C" ;Offset$ ;Offset, C or x,y coordinates
"B-Size" ;PaperSize$ ;Paper Size, A-Size thru D-Size
"A4 210x297" ;MediaSize$ ;Media Size, per available choices
"N" ;Flip$ ;Flip Plot, Y or N
"C" ;Offset$ ;Offset, C or x,y coordinates
;Add C-Size and D-Size information as required per plotter.
);list
;Add additional plotter lists as required per each AutoCAD department.
));list;setq
(setq *PlotStyles@ (list "Draft.ctb" "Final.ctb" "Generic.ctb" "monochrome.ctb"));Revise as required.
);case
);cond