Rule tubingSize As Number = 75 Rule width As Number = 800 Child topMember As :squareTube size = tubingSize cut1 = 1 cut2 = 1 length = width End Child
Child topMember As :squareTube size = me.tubingSize cut1 = 1 cut2 = 1 length = me.width End Child
Most references in rules are local. However, you can reference rules in parts that are hierarchically above or below the current part. The following example references the thickness rule in the footPlate part, which is a child of rightLegAssembly.
This type of reference chain works best when used as a downward reference, for example, if rightLegAssembly is a child of the current part. An upward reference with specific part names is less reliable, as it requires that a hierarchy exist whose part names exactly match the reference chain.
By default, if a part does not have a particular rule, owned by its design or by an inherited design, Intent will look up to the part’s parent to find the rule. If the parent does not contain the rule, Intent will continue to look up the assembly tree to find the rule. If the rule is not found in any ancestor, an error is raised.