Within a child rule, use child.<rulename> to reference a rule of the child.
In the example below, a rule Length is defined in the child rule. A rule of the same name is defined in the parent.
Rule length As Number = 51 Child cube As :IvBlock Length = 52 ‘Set cube width equal to cube length Width = child.length ‘Set cube height equal to cube length Height = child.length End Child
To set the values of Width and Height equal to the value of Length in the child (52), Width and Height must reference child.length. Below, notice that the cube width and height are equal to the value of Length as set in the child.
In the next example, Height is equal to Length (not child.length). In this case, the reference is to Length as set in the parent.
Rule length As Number = 51 Child cube As :IvBlock Length = 52 Width = child.length Height = Length End Child
Below, the cube height is equal to the value of Length as set in the parent (51).