ForEachObjectInLayer Edit

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

OptionSelectorDescription
All objects0
Visible Objects only1
Selected Objects only2
Unlocked objects only4

Traversal
Options

OptionSelectorDescription
Traverse Shallow0
Traverse Groups1Traverse inside groups
Traverse Deep2Traverse all containers (walls, extrudes, sweeps, etc)

Layer Options

OptionSelectorDescription
Current layer0
All layers1
Visible layers2
Editable layers4
Snappable layers8

説明

   指定した条件に合致した図形を、指定した手続きで処理します。

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);

リロード   新規 下位ページ作成 編集 凍結 差分 添付 コピー 名前変更   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS