我成功了,下面是我如何绕过多重布局的
- For x = 0 To Drawing.Layouts.Count - 1
- Set Layout = Drawing.Layouts(x)
- Layout.RefreshPlotDeviceInfo
- Layout.ConfigName = Plotter ' CALL PLOTTER
- Layout.PlotType = acExtents
- Layout.PlotRotation = ROT ' CALL ROTATION
- Layout.StyleSheet = CTB ' CALL CTB FILE
- Layout.PlotWithPlotStyles = True
- Layout.PlotViewportBorders = False
- Layout.PlotViewportsFirst = True
- Layout.CanonicalMediaName = SIZE ' CALL SIZE
- Layout.PaperUnits = acInches
- Layout.StandardScale = PSCALE ' CALL PSCALE
- Layout.ShowPlotStyles = False
- Layout.ScaleLineweights = True
- Layout.CenterPlot = True
- Drawing.ActiveLayout = Layout
- Drawing.Plot.NumberOfCopies = 1
- Drawing.Regen acAllViewports
- Drawing.Plot.PlotToDevice
- Next x
- Set Layout = Nothing
|