[求助][讨论]求用VBA做cad二次开发怎么设置图层
用VBA做cad二次开发怎么设置图层,谁有相关的例子,给会个帖子,谢谢。 <p>Public Function CreateLayer(ssLayerName As String, Optional EntColor As Integer) As AcadLayer<br/>On Error Resume Next<br/> Set CreateLayer = ThisDrawing.Layers(ssLayerName)<br/> If Err Then<br/> Err.Clear<br/> Set CreateLayer = ThisDrawing.Layers.Add(ssLayerName)<br/> If EntColor <> 0 Then CreateLayer.color = EntColor<br/> End If</p><p>End Function<br/></p>
页:
[1]