All Frameworks  Object Hierarchy  This Framework  Indexes   

ExpertRule (Object)

Represents the edition part of a rule.
The following example shows how access the Rule Rule1 from an existing RuleSet RS1 of the RuleBase RB1
 Dim CATDocs As Document
 Set CATDocs   = CATIA.Documents
 Dim partdoc As PartDocument
 Set partdoc   = CATDocs.Add("CATPart")
 Dim part As Part
 Set part      = partdoc.Part
 Dim relations As Relations
 Set relations = part.Relations
 Dim Rulebase As ExpertRuleBaseRuntime
 Set RuleBase  = relations.Item("RB1")
 Dim Ruleset As ExpertRuleSetRuntime
 Set RuleSet	 = RuleBase.ExpertRuleBaseComponentRuntimes.Item("RS1")
 Dim Rule1 As ExpertRuleRuntime
 Set Rule1	 = RuleSet.ExpertRuleBaseComponentRuntimes.Item("Rule1")
 
See also:
Relations, ExpertRuleBase

Property Index

Body
Returns or sets the string that defines the body of a Rule.
Language
Returns or sets the language of a rule.
Variables
Returns or sets the variables scope of the a Rule.

Properties


o Property Body() As
Returns or sets the string that defines the body of a Rule. For instance: "if ( H\Diameter > 20mm ) H\Activity = FALSE"
o Property Language() As
Returns or sets the language of a rule.
o Property Variables() As
Returns or sets the variables scope of the a Rule. For instance: "H:Hole; P: Pad"

Copyright © 2003, Dassault Systèmes. All rights reserved.