打印样式文件时有的,我在打印对话框里就可以选,但是我不想让它出现对话框,我把它设置为全路径都不可以,我现在把它改成了,还是不行,请哪位高人帮我看看啊 Sub plotpdf() Dim Plotset As AcadPlotConfiguration Set Plotset = ThisDrawing.PlotConfigurations.Add("pdf") Plotset.ConfigName = "ComputerPrint" Plotset.StyleSheet = "Fab Dwg.ctb" Plotset.CanonicalMediaName = "A3" Plotset.PlotWithPlotStyles = True Plotset.PlotRotation = ac90degrees Plotset.ShowPlotStyles = True Plotset.PaperUnits = acMillimeters Plotset.PlotType = acExtents Plotset.StandardScale = acScaleToFit Plotset.CenterPlot = True ThisDrawing.Application.ActiveDocument.plot.PlotToDevice ("ComputerPrint") End Sub |