在打印CAD图时,通常是在图层管理器中更改,比较麻烦。下面一个小程序能批量更改Linewight .Lineweight = acLnWt015(线宽)简单实有方便。 Sub ChangeLayerLineweight() Dim ss As AcadLayer For Each ss In ThisDrawing.Layers Debug.Print ss.Name Select Case ss.Name Case "中心线", "尺寸线", "细实线", "剖面线", "零件表格文本", "文本", "虚线", "点划线" ss.Lineweight = acLnWt015 Case "零件表格横线" ss.Lineweight = acLnWt030 Case "零件表格竖线" ss.Lineweight = acLnWt040 Case "图框粗实线", "内图框线" ss.Lineweight = acLnWt050 Case "图框粗实线", "内图框线" ss.Lineweight = acLnWt050 Case Else ss.Lineweight = acLnWt035 End Select Next ss End Sub
|