我在书上调试一段程序,想用VBA制定一个中心线层.
Public Sub Centlayer() On Error Resume Next Dim CenterLayer As AcadLayer Dim layerCollection As AcadLayers Dim Center As AcadLineType
Set layerCollection = ThisDrawing.Layers Set CenterLayer = layerCollection.Add("center") Set CenterLayer.Linetype = "Center"
End Sub
当我写到红色的那句话是,就不知道怎么写了,帮助文件里也找不到lintype的更详细的内容,恳请各位高手指点 |