VBA中如何实现标注以及创建图层?
<p>VBA中如何实现标注以及创建图层?</p> <p>标注有各种方法,请参考对象模型。</p><p>建图层可使用以下函数</p><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</p>
页:
[1]