谢谢BIGAL
我完成了我的计划。下面是我的程序
- Sub Example_PlotType()
-
- Dim ACADLayout As ACADLayout
- Dim originalValue As Integer
- Dim Print1 As String
- Dim Paper1 As String
- Set ACADLayout = ThisDrawing.ActiveLayout
-
- Print1 = "HP LaserJet 5200 Series PCL 5" ' name of my printer
- Paper1 = "A3" 'type of paper size
-
- ACADLayout.PlotType = acExtents
- ACADLayout.CenterPlot = True
- ThisDrawing.ActiveLayout.StyleSheet = "monochrome.ctb"
- ThisDrawing.ActiveLayout.StandardScale = acScaleToFit
- ThisDrawing.ActiveLayout.ConfigName = Print1
- ThisDrawing.ActiveLayout.CanonicalMediaName = Paper1
- End Sub
|