getDesignRules()

概要

指定されたデザインで定義されているルール名前一覧を返します。継承されたルールを含むすべてのルールを返すこともできます。

構文

getDesignRules ( designName As Name, _
                 Optional includeInherited? As Boolean = False ) As List 
引数 [タイプ] 説明
designName [名前] ルール名を返すデザインです。
includeInherited? boolean 任意指定。True にすると継承されたルールを含むすべてのデザイン ルールを返します。既定は False です。

例 1

この例では、同じデザインで、継承されたルールを返す場合と返さない場合の違いを示します。
Intent >getDesignRules(:IvMateConstraint) 
--> {}
Intent >getDesignRules(:IvMateConstraint, includeInherited? := True) 
-->{:index, :%%Name, :NHA, :render?, :entity1, ... :isKindOf?, :safeRef, :safeRefMethod}
includeInherited? の結果が中略されていることに注意してください。