I am attempting to migrate my custom plot routines to VBA, and I am having a problem with the following code, I am at a loss as to how you set the paper size. Any guidance would be appreciated...
Public Sub FULL_SIZE()
ThisDrawing.ActiveLayout.RefreshPlotDeviceInfo
Dim Layouts As AcadLayouts, Layout As AcadLayout
Set Layouts = ThisDrawing.Layouts
ThisDrawing.Regen acAllViewports
With ThisDrawing.ActiveLayout
.RefreshPlotDeviceInfo
.GetPlotStyleTableNames
.StyleSheet = "SFA1055.ctb"
.ConfigName = "\\CENTRAL\HP DesignJet 500 42 by HP"
.PlotRotation = ac0degrees
.CenterPlot = True
.PaperUnits = acInches
.ScaleLineweights = False
'.GetLocaleMediaName = "Oversize: Arch D (Landscape)" <<This seems to be where the code fails!!>>
.StandardScale = ac1_1
End With
End Sub
EDIT: Wrapped your code in [ code ] tags for ya