比如有两个图层:
方法1
Sub DrawAuto() Dim LayerObj As AcadLayer Dim LinObj As AcadLWPolyline LinObj.Layer = "图层2" '指定图层2 End Sub
方法2
Sub DrawAuto() Dim LayerObj As AcadLayer Dim LinObj As AcadLWPolyline ThisDrawing.Activelayer = "图层2" '切换到图层2 End Sub
这两种方法是书上摘下来的,但都切换不了图层2,还希望哪位大哥能帮小弟指点一二,谢谢!!! 饭后再见了。