Model Analysis > Creo Behavioral Modeling Tools > Analyses > PTC Mathcad Prime Analysis and PTC Mathcad Prime Analysis Feature > Example: Driving an Angular Dimension Using a PTC Mathcad Prime Generated Parameter
  
Example: Driving an Angular Dimension Using a PTC Mathcad Prime Generated Parameter
Summary: This example shows you how to drive angular dimensions using PTC Mathcad Prime generated parameter.
Problem: Need to drive a Creo Parametric angular dimension, d37, with the PTC Mathcad Prime analysis generated parameter MC_Y.
Solution: Create a PTC Mathcad Prime analysis feature and define a unit-sensitive relation.
The following basic steps outline this example:
1. In PTC Mathcad Prime, load an existing PTC Mathcad Prime file with a .mcdx extension.
2. In the Math region, select a PTC Mathcad Prime results variable, y=0.52 rad.
3. Click Input/Output > Assign Input to assign the PTC Mathcad Prime results variable as output.
4. To view the defined output variables, click Input/Output > Show As List. The Input/Output Designation dialog box opens listing the PTC Mathcad Prime output variables along with their aliases.
5. To edit the alias for a particular variable, click on the name displayed under the Alias column and enter the new name.
 
* The aliases defined for the PTC Mathcad Prime output variables appear for selection in Creo Parametric during the analysis.
6. Click File > Save to save the PTC Mathcad Prime file with a .mcdx extension.
7. In Creo Parametric, open the model and click Analysis > Analysis. The ANALYSIS dialog box opens.
8. Under Name, enter a name for the analysis, for example, ANALYSIS1 or accept the default name.
9. Under Type, click Prime Analysis.
10. Click Next. The Prime Analysis dialog box opens.
11. Click Load File under File and select a file with a .mcdx extension.
12. After loading the PTC Mathcad Prime file, define the analysis as required.
13. Right-click and click Select Prime output in an empty row under the Prime column under Prime to PTC Creo Parametric to select the PTC Mathcad Prime output variable y to compute from the Outputs Selection dialog box.
14. Click OK to continue. The alias name of the selected PTC Mathcad Prime output variable y, its current value and its units are displayed in the Prime to PTC Creo Parametric table in the Prime Analysis dialog box. The Creo Parametric parameter that will be generated for the computed PTC Mathcad Prime output variable and its default units are also displayed in the Prime to PTC Creo Parametric table.
15. Click Compute to run the analysis. The value displayed for the PTC Mathcad Prime output variable y is updated with the newly computed value.
16. Click Close to return to the ANALYSIS dialog box. The Result params window opens. All PTC Mathcad Prime output variables appear in the Result params table. The table lists the status, alias name, and description of each parameter.
17. To create a parameter, select it from the Result params table and click YES under Create.
18. Under Param name, type a name for the Creo Parametric parameter or accept the default name. The default name of the Creo Parametric parameter is MC_PTC Mathcadaliasname, where ptc Mathcadaliasname is alias name of the PTC Mathcad Prime output variable. In case of the PTC Mathcad Prime output variable y, the default name of the generated parameter is MC_Y.
19. Click to create the PTC Mathcad Prime analysis feature.
20. To create a relation, click Tools > Relations. The Relations dialog box opens.
21. Under Look in, select the Feature object type to apply the relation.
22. Select the ANALYSIS1 feature on the Model Tree to create a relation.
23. Under Relation, type the unit-sensitive relation d37=MC_Y:FID*180/pi and press ENTER. This relation shows that Creo Parametric dimension d37 is driven by PTC Mathcad Prime analysis generated parameter MC_Y.
24. Click Utilities > Verify to validate the relations you have entered.