Model Analysis > Creo Behavioral Modeling Tools > Analyses > PTC Mathcad Prime Analysis and PTC Mathcad Prime Analysis Feature > Example: Exporting Angular Dimensions to PTC Mathcad Prime
  
Example: Exporting Angular Dimensions to PTC Mathcad Prime
Summary—This example shows you how to export angular dimensions to PTC Mathcad Prime.
Problem—Need to map a Creo Parametric angular dimension, d36, with a PTC Mathcad Prime variable, x:=30 deg.
Solution—Redefine the PTC Mathcad Prime variable x degree as x radians and create a PTC Mathcad Prime analysis feature.
The following steps outline this example:
1. In PTC Mathcad Prime, load an existing PTC Mathcad Prime file with a .mcdx extension.
2. Redefine the PTC Mathcad Prime assignment variable x:=30 deg as x:=0.52 rad.
3. In the Math region, select a PTC Mathcad Prime assignment variable, x:=0.52 rad.
4. Click Input/Output > Assign Input to assign the PTC Mathcad Prime assignment variable as input.
5. To view the defined input variables, click Input/Output > Show As List. The Input/Output Designation dialog box opens listing the PTC Mathcad Prime input variables along with their aliases.
6. 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 input variables appear for selection in Creo Parametric during the analysis.
7. Click File > Save to save the PTC Mathcad Prime file with a .mcdx extension.
8. In Creo Parametric, open the model and click Tools > Parameters. The Parameters dialog box opens.
9. Under Look In, select the desired object type to which you want to add a parameter.
10. Click to create a parameter, type ANGLE as the parameter name in the Name column, and select the unit rad.
11. Click Tools > Relations. In the Relations dialog box that opens, click Utilities > Unit Sensitive.
12. Under Look in, select the desired object type to apply the relation.
13. Under Relations, type the unit-sensitive relation ANGLE=d36*pi/180 and press ENTER. This relations shows that the ANGLE parameter is driven by the d36 dimension.
14. Click Utilities > Verify to validate the relations you have entered.
15. Click Analysis > Prime Analysis. The Prime Analysis dialog box opens.
16. Click Load File under File and select a file with a .mcdx extension.
17. After loading the PTC Mathcad Prime file, right-click and click Select Creo Parametric parameter in an empty row under the Creo Parametric column under PTC Creo Parametric to Prime. Select the ANGLE parameter from the Parameter Selection dialog box. The ANGLE parameter, its current value and its units are displayed in the PTC Creo Parametric to Prime table.
18. To select the PTC Mathcad Prime input variable, right-click and click Select Prime input in a row containing the Creo Parametric dimension or parameter under the Prime column under PTC Creo Parametric to Prime. In the Input Selection dialog box, click the PTC Mathcad Prime input variable x to map it with theANGLE parameter.
19. Define the remaining analysis as required.
20. To save this analysis in an analysis feature, click Add Feature and enter a name for the feature. A new analysis feature appears on the Model Tree.