Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<O N="Extends_Object1" T="Project" Category="Core Objects">
    <!-- created by ParamML Examples on 30.01.2023 -->
    <O N="Support_Condition_Inputs" T="Group" Label="degree of freedom">
        <P N="Tx" V="0" D="[Free=0/Fixed=1]Tx" Role="Input" Category="Support_Condition_Inputs" />
        <P N="Ty" V="1" D="[Free=0/Fixed=1]Ty" Role="Input" Category="Support_Condition_Inputs" />
        <P N="Tz" V="0" D="[Free=0/Fixed=1]Tz" Role="Input" Category="Support_Condition_Inputs" />
        <P N="Rx" V="1" D="[Free=0/Fixed=1]Rx" Role="Input" Category="Support_Condition_Inputs" />
        <P N="Ry" V="1" D="[Free=0/Fixed=1]Ry" Role="Input" Category="Support_Condition_Inputs" />
        <P N="Rz" V="1" D="[Free=0/Fixed=1]Rz" Role="Input" Category="Support_Condition_Inputs" />
    </O>
    <O T="Document">
        <O T="DocDesignCode" Obj="Support_Condition_Inputs" />
    </O>
</O>

We have an object that defines the "degrees of freedom" of the support components, and we require the parameters from this object in another component. By using the "Extends" object, we were able to access and utilize the required parameters.

Code Block
languagexml
<O N="Extends_Object2" T="Project" TransAlignRule="Right" Category="Core Objects">
    <!-- created by ParamML Examples on 30.01.2023 -->
    <O N="Internal" T="Unit" Length="Inch" Force="Kip" Angle="Degrees" Temperature="Fahrenheit" Time="Sec" />
    <O N="Geometry" T="Unit" Length="Feet" Force="Kip" Angle="Degrees" Temperature="Fahrenheit" Time="Sec" />
    <O N="Support_Inputs" T="Group">
        <P N="Support_Location" V="120" Role="Input" Category="Support_Inputs" />
        <P N="Support_length" V="24" Role="Input" Category="Support_Inputs" />
        <P N="Support_width" V="48" Role="Input" Category="Support_Inputs" />
        <P N="Support_thickness" V="36" Role="Input" Category="Support_Inputs" />
    </O>
    <O N="E_O" T="Group" Extends="Extends_Object1" Override="1">
        <P N="Tx" V="0" D="[Free=0/Fixed=1]Tx" />
        <P N="Ty" V="1" D="[Free=0/Fixed=1]Ty" />
        <P N="Tz" V="0" D="[Free=0/Fixed=1]Tz" />
        <P N="Rx" V="1" D="[Free=0/Fixed=1]Rx" />
        <P N="Ry" V="1" D="[Free=0/Fixed=1]Ry" />
        <P N="Rz" V="1" D="[Free=0/Fixed=1]Rz" />
    </O>
</O>

When we use the "Extends" object, we have the option to modify any aspect of the object being extended. This is done by using the "Override" keyword.

...