Plotting with Page Setups

Plotting with Page Setups

Anonymous
Not applicable
279 Views
2 Replies
Message 1 of 3

Plotting with Page Setups

Anonymous
Not applicable
I would like to plot using a specified page setup in my drawing. How do I do this?
0 Likes
280 Views
2 Replies
Replies (2)
Message 2 of 3

fxcastil
Advocate
Advocate
'To plot using a specified (source) page setup, first copy from the print source layout to the other destination layouts
' before plotting all pages

'I would first create a collection of all the destination layout names like this in a loop
for (add the names of source layouts like this to collection)
objCollection.Add ThisDrawing.Layouts(strLayoutName)
next


' now copy the source page setup to all the destination layouts

Sub CopySetup(objSourceLayout As AcadLayout, colTargetLayouts As Collection)

Dim objLayout As AcadLayout

With ThisDrawing
For Each objLayout In colTargetLayouts
objLayout.CopyFrom objSourceLayout ' copy from source Layout to each destination Layout
Next ' objLayout
End With



' Now plot layout tabs


Dim objLayout As AcadLayout
Dim lngCount As Long ' count of selected layouts to plot
Dim strLayoutName As String
Dim strLayoutList() As String ' a array/ list of layouts to plot

' fill the array strLayoutList with names of layouts to plot

With ThisDrawing.Plot
.StartBatchMode lngCount + 1 ' this will show the text batch progress on plot progress dialogs
.NumberOfCopies = 1
.QuietErrorMode = False ' print error message if there is a plot problem
.SetLayoutsToPlot strLayoutList ' plot array of layouts desired
.PlotToDevice ' start plotting
End With

Fred C
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks for the help. I think that ought to do it.
0 Likes