ForEachObjectInLayer
の編集
[
ホーム
|
一覧
|
検索
|
最終更新
|
ヘルプ
] [
新規
]
VWRR
・
WIKIBOX
建築mome
・
メーカー
最新の40件
2018-07-17
VectorScript
2013-05-25
例題の解説
2011-12-09
ΔxΔy
GetLine
Distance
Num2Str
2011-12-08
寸法変倍
MenuBar
日付スタンプ
Date
面積スタンプ
2011-12-07
HArea
Num2StrF
TextOrigin
GetPt
FSActLayer
FActLayer
Concat
BeginText
EndText
図面の中を検索
ReDraw
MoveObjs
GetKeyDown
ClrMessage
Message
Y方向複製
2011-12-06
キー入力
ダイアログ
2011-12-04
図形の整列
2011-11-26
属性を設定する
Locus
変数
Oval
識別子
定数
基本型
言語仕様
制御命令
IF
total:
591
today:
1
yesterday:
0
now:
1
Top
> ForEachObjectInLayer
**ForEachObjectInLayer カテゴリ ユーティリティ(Utility)[#r12122d5] Declaration: PROCEDURE ForEachObjectInLayer ( actionFunc :PROCEDURE; objOptions :INTEGER; travOptions :INTEGER; layerOptions :INTEGER ) ; Description: Traverses through all objects according to specified search optionsand 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 |BGCOLOR(white):100|BGCOLOR(white):100|BGCOLOR(white):200|c |Option|Selector|Description| |All objects&br;全ての図形|0|| |Visible Objects only&br;可視図形のみ|1|| |Selected Objects only&br;選択図形のみ|2|| |Unlocked objects only&br;ロック以外の図形|4|| Traversal Options |BGCOLOR(white):100|BGCOLOR(white):100|BGCOLOR(white):200|c |Option|Selector|Description| |Traverse Shallow|0|| |Traverse Groups|1|Traverse inside groupsグループ内部での動作| |Traverse Deep|2|Traverse all containers (walls, extrudes, sweeps, etc)| Layer Options |BGCOLOR(white):100|BGCOLOR(white):100|BGCOLOR(white):200|c |Option|Selector|Description| |Current layer|0|| |All layers&br;全てのレイヤ|1|| |Visible layers&br;可視レイヤ内|2|| |Editable layers&br;編集レイヤ内|4|| |Snappable layers&br;スナップレイヤ内|8|| 説明 指定した条件に合致した図形を、指定した手続きで処理します。 Parameters: actionFunc Subroutine which performs operation on found objects. 関数型サブルーチンの名前 objOptions Object selection option index. 図形選択オプション番号 travOptions Search options index. 検索オプション番号 layerOptions Layer selection option index. レイヤ選択オプション番号 |BGCOLOR(white):100|BGCOLOR(white):100|BGCOLOR(white):200|c |変数名|型|変数の説明| |actionFunc|PROCEDURE|関数型サブルーチンの名前| |objOptions|INTEGER|図形選択オプション番号| |travOptions|INTEGER|検索オプション番号| |layerOptions|INTEGER|レイヤ選択オプション番号| 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);
タイムスタンプを変更しない
**ForEachObjectInLayer カテゴリ ユーティリティ(Utility)[#r12122d5] Declaration: PROCEDURE ForEachObjectInLayer ( actionFunc :PROCEDURE; objOptions :INTEGER; travOptions :INTEGER; layerOptions :INTEGER ) ; Description: Traverses through all objects according to specified search optionsand 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 |BGCOLOR(white):100|BGCOLOR(white):100|BGCOLOR(white):200|c |Option|Selector|Description| |All objects&br;全ての図形|0|| |Visible Objects only&br;可視図形のみ|1|| |Selected Objects only&br;選択図形のみ|2|| |Unlocked objects only&br;ロック以外の図形|4|| Traversal Options |BGCOLOR(white):100|BGCOLOR(white):100|BGCOLOR(white):200|c |Option|Selector|Description| |Traverse Shallow|0|| |Traverse Groups|1|Traverse inside groupsグループ内部での動作| |Traverse Deep|2|Traverse all containers (walls, extrudes, sweeps, etc)| Layer Options |BGCOLOR(white):100|BGCOLOR(white):100|BGCOLOR(white):200|c |Option|Selector|Description| |Current layer|0|| |All layers&br;全てのレイヤ|1|| |Visible layers&br;可視レイヤ内|2|| |Editable layers&br;編集レイヤ内|4|| |Snappable layers&br;スナップレイヤ内|8|| 説明 指定した条件に合致した図形を、指定した手続きで処理します。 Parameters: actionFunc Subroutine which performs operation on found objects. 関数型サブルーチンの名前 objOptions Object selection option index. 図形選択オプション番号 travOptions Search options index. 検索オプション番号 layerOptions Layer selection option index. レイヤ選択オプション番号 |BGCOLOR(white):100|BGCOLOR(white):100|BGCOLOR(white):200|c |変数名|型|変数の説明| |actionFunc|PROCEDURE|関数型サブルーチンの名前| |objOptions|INTEGER|図形選択オプション番号| |travOptions|INTEGER|検索オプション番号| |layerOptions|INTEGER|レイヤ選択オプション番号| 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);