getRuleAnnotation()

概要

指定されたパーツに対して指定されたルールに与えられた注記の値を文字列として返します。ルールにこのような注記がない場合、NoValue が返されます。パーツにこのようなルールがない場合、エラーが発生します。指定されたデザインが存在しない場合、エラーが発生します。

構文

getRuleAnnotation ( p As Part, _
                    ruleName As Name, _
                    annotationName As Name ) As Any 
引数 [タイプ] 説明
p パーツ ルールが含まれているパーツです。
ruleName [名前] ルール名前です。
annotationName [名前] 注記の名前です。

例 1

Intent >getRuleAnnotation(Me, :showInModelBrowser?, :%%prompt) 
--> "Set this to False to prevent the part from appearing in the model browser"