- Sub Ch9_PrintModelSpace() ' 验证活动空间是模型空间
- If ThisDrawing.ActiveSpace = acPaperSpace Then ThisDrawing.MSpace = True ThisDrawing.ActiveSpace = acModelSpace End If ' 设置打印区域的范围和比例 ThisDrawing.ModelSpace.Layout.PlotType = acExtents ThisDrawing.ModelSpace.Layout. _ StandardScale = acScaleToFit ' 将打印份数设置为 1 ThisDrawing.Plot.NumberOfCopies = 1 ' 初始化打印 ThisDrawing.Plot.PlotToDeviceEnd Sub
|