Notifications
Clear all
[Closed] How to iterate through all sublayers of given layer?
Sep 15, 2015 5:04 pm
I wrote a code that does something for each Editable Poly on given layer:
ilayer = layerManager.getLayer index
layerName = ilayer.name
layer = ILayerManager.getLayerObject index
nodes = refs.dependents layer
if(nodes == Undefined) do (
messageBox "No objects on chosen layer." title: "Error"
exit
)
for obj in (nodes as array) do (
if(classof obj == Editable_Poly) do (
...
)
)
I would like to also iterate through all sublayers of given layer. How can I do this?