Feature

Description

Describes the parent of all mechanical features.

Attributes

ID

Owner

Name

NamedURLs

UserInfoComment

 

  • Hole is the Type.

Methods

AbsoluteId Method Access AttributeType Method
Find GetAttributeBoolean Method GetAttributeInteger Method
GetAttributeObject Method GetAttributeReal Method GetAttributeString Method
HasAttribute Method Id Method IsOwnedBy Method
IsSupporting Method Name Method Query Method
SetAttributeBoolean Method SetAttributeDimension Method SetAttributeInteger Method
SetAttributeObject Method SetAttributeReal Method SetAttributeString Method
Update    

Example

  1. Create a part with several holes.

  2. Add a real type parameter ("Real.1" for example) to one of the hole features. To do this, you must use the Knowledge Advisor product.

  3. Create the rule below:

/* This rule resets the diameter of the hole */
/* which has "Real.1" as its parameter to the Real.1 value */
(for all) H:Hole
if H->HasAttribute("Real.1")
H.Diameter = 1mm*(H->GetAttributeReal("Real.1"))