CAD Forums > CAD General

one time plotting

(1/3) > >>

ELOQUINTET:
I am looking for any easy way to do one time plots. i'm thinking this would be easier to just explain it in psuedocode.

...ask user which space they want to be in model or paper
...-plot
...get current plotter and papersize
...uncheck save changes to layout
...change plotter from a to b
...change paper size from a to b
...allow user to pick window and select ok
...revert to previous settings

does anybody have something like this?

Mark:
- Dan

Just work through the plot command options and think about what you need to ask the user and what you can supply via the code. Here are the plot options in 2005;

--- Code: ---
Command: -plot
Detailed plot configuration? [Yes/No] <No>: Y

Enter a layout name or [?] <24 X 36>:
Enter an output device name or [?] <HP DesignJet 750C-24x36.pc3>:
Enter paper size or [?] <Arch D - 24 x 36 in. (landscape)>:
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) <SVY-PlotStyle.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>: n

--- End code ---

ELOQUINTET:
yeah i was thinking it would look something like that. i saw this script in another topic recently. i'm just not good at the whole formatting of lisp yet and figured someone else had surely done this already. maybe i'll give it a shot if i get some free time today


--- Code: ---;;;
;;;A1 STANDARD PAGE SETUP SCRIPT
;;;
;;change to paper space
tilemode
0
;;plot the drawing
-plot
;;Detailed plot configuration?
yes
;;Enter a layout name

;;Enter an output device name
\\glasgow\1050
;;Enter paper size
Oversize: ISO A1  (landscape)
;;Enter paper units [Inches/Millimeters]
millimeters
;;Enter drawing orientation [Portrait/Landscape]
landscape
;;Plot upside down? Yes/No
no
;;Enter plot area [Display/Extents/Layout/View/Window]
extents
;;Enter plot scale (Plotted Millimeters=Drawing Units) or [Fit]
1:1
;;Enter plot offset (x,y) or [Center]
center
;;Plot with plot styles? [Yes/No]
yes
;;Enter plot style table name
STANDARD.ctb
;;Plot with lineweights? [Yes/No]
no
;;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]
NO
;;Save changes to page setup [Yes/No]
YES
;;Proceed with plot [Yes/No]
yes
;;;SAVE THE DRAWING
QSAVE
;;;
;;;END OF SCRIPT
;;;
--- End code ---

ELOQUINTET:
well the script route won't work because of the spaces  :cry:

CAB:

--- Quote from: eloquintet ---well the script route won't work because of the spaces  :cry:
--- End quote ---
Didn't Keith just post something about spaces & sctipts?
Maybe to use quotes?

Navigation

[0] Message Index

[#] Next page

Go to full version