ForEachObjectInLayer
|
| 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 |
説明
指定した条件に合致した図形を、指定した手続きで処理します。
Parameters:
actionFunc Subroutine which performs operation on found objects. 関数型サブルーチンの名前 objOptions Object selection option index. 図形選択オプション番号 travOptions Search options index. 検索オプション番号 layerOptions Layer selection option index. レイヤ選択オプション番号
Example:
PROCEDURE Example; FUNCTION MakeItRed(h :HANDLE) :BOOLEAN; VAR r, g, b :LONGINT; BEGIN ColorIndexToRGB(7, r, g, b); SetFillBack(h, r, g, b); END; BEGIN ForEachObjectInLayer(MakeItRed, 2, 0, 4); END; RUN(Example);