All Frameworks Object Hierarchy This Framework Indexes
Be careful : the flattened view can be misleading. For instance, if there are two ExpertChecks with the same name, you will be able to access only one of them (with the methods ExpertRuleBaseComponentRuntimes.Item and ExpertRuleBaseComponentRuntimes.Remove )
| o Func Item( | iIndex) As |
If several Expert components have the same name, the use of name is unpredicted.
Dim lastRuleBaseComponent as ExpertRuleBaseComponentRuntime Set lastRuleBaseComponent = RuleSet.Item(RuleCollection.Count)
| o Sub Remove( | iIndex) |
If several Expert components have the same name, the use of name is unpredicted.
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
Set massCheck = part.Relations.Item("RuleBase").RuleSet.ExpertRuleBaseComponentRuntimes.Remove("density")
| o Func ShallowCount( | ) As |
ObjectNumber = MyCollection.ShallowCount
| o Func ShallowItem( | iIndex) As |
Dim lastRuleBaseComponent as ExpertRuleBaseComponentRuntime Set lastRuleBaseComponent = RuleSet.ShallowItem(RuleCollection.ShallowCount)
| o Sub ShallowRemove( | iIndex) |
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
Set massCheck = part.Relations.Item("RuleBase").RuleSet.ExpertRuleBaseComponentRuntimes.ShallowRemove("density")
Copyright © 2003, Dassault Systèmes. All rights reserved.