如题,能不能用类似如下格式遍历图层内所有实体? Dim k, l As Integer
Dim temp_entity As AcadEntity
Dim Temp_Layer As AcadLayer
k = 0
l = 0
For Each Temp_Layer In ThisDrawing.Layers
Layer_Name(k) = Temp_Layer.Name
For Each temp_entity In Temp_Layer ‘此处报错
l = l + 1
Next
MsgBox("该图层有"&Cstr(l)&“个实体”)
Next