Declaration:
PROCEDURE ForEachObjectInLayer ( actionFunc :PROCEDURE;
objOptions :INTEGER;
travOptions :INTEGER;
layerOptions :INTEGER
) ;
Description:
Traverses through all objects according to specified search options
and applies the specified action to each object.
The 'actionFunc' procedure should return false to continue with next object,
or return true to stop the traversal.
Table - ForEachObjectInLayer Selectors
Object Options
| Option | Selector | Description |
| All objects | 0 | |
| Visible Objects only | 1 | |
| Selected Objects only | 2 | |
| Unlocked objects only | 4 | |
Traversal
Options
| Option | Selector | Description |
| Traverse Shallow | 0 | |
| Traverse Groups | 1 | Traverse inside groups |
| Traverse Deep | 2 | Traverse all containers (walls, extrudes, sweeps, etc) |
Layer Options
| Option | Selector | Description |
| Current layer | 0 | |
| All layers | 1 | |
| Visible layers | 2 | |
| Editable layers | 4 | |
| Snappable layers | 8 | |