Model Analysis > Creo Behavioral Modeling Tools > Analyses > PTC Mathcad Analysis and PTC Mathcad Analysis Feature > About the PTC Mathcad Prime Analysis and PTC Mathcad Prime Analysis Feature
  
About the PTC Mathcad Prime Analysis and PTC Mathcad Prime Analysis Feature
You can use a PTC Mathcad Prime file to define the analysis that you want to perform on a Creo Parametric model. To access a PTC Mathcad Prime analysis, click Analysis > Mathcad Analysis.
You can also create an analysis feature driven by the PTC Mathcad Prime analysis. The PTC Mathcad Prime analysis determines which parameters will be created as a result of this analysis feature. To create an analysis feature, click Analysis > Analysis and select Mathcad Analysis as the analysis type.
You can create a PTC Mathcad output file that is identical to the PTC Mathcad Prime file used to define the analysis feature, but evaluated on updated values of the dimensions and parameters used in the analysis. You can also create datum points and a datum coordinate system as a result of the PTC Mathcad Prime analysis feature.
 
You can use a PTC Mathcad Prime analysis in Pro/ENGINEER Wildfire 3.0 M030 or later with Mathcad 13.0.
If you create and save a PTC Mathcad Prime analysis to a part in Pro/ENGINEER Wildfire 3.0 M030 or later, you cannot retrieve that part in earlier versions of Pro/ENGINEER. To retrieve such a part in an earlier version of Pro/ENGINEER, remove the PTC Mathcad Prime analysis feature from the part in Pro/ENGINEER Wildfire 3.0 M030 or later.
When you close a PTC Mathcad Prime analysis or quit Creo Parametric, all instances of PTC Mathcad Prime are automatically closed.
To perform an analysis, you must first load a PTC Mathcad Prime worksheet file in a PTC Mathcad Prime analysis and map Creo Parametric parameters or dimensions to PTC Mathcad Prime variables. For information on mapping, see Guidelines for Mapping names of Variables or Parameters.
To map a Creo Parametric parameter or dimension to a PTC Mathcad Prime assignment variable, tag the math regions of the PTC Mathcad Prime assignment variables as proe2mc. When you tag a math region as proe2mc, the PTC Mathcad Prime variable gets the value of the Creo Parametric parameter or dimension as input. Note that you must apply the proe2mc tag to those regions that have a numeric definition type such as x:=45.78 in, where x is a PTC Mathcad Prime assignment variable and in is the units.
For PTC Mathcad Prime results variables to be available for computation in Creo Parametric, you must tag the math regions as mc2proe. Note that you must apply the mc2proe tag to regions that have a numeric result type such as y=70.92 in, where y is a PTC Mathcad Prime results variable and in is the units.
When you map Creo Parametric parameters or dimensions to PTC Mathcad Prime variables, the PTC Mathcad Prime assignment variables in the math region that have a proe2mc tag appear in the Input Selection dialog box. Similarly, when you map PTC Mathcad Prime variables to Creo Parametric, the PTC Mathcad Prime results variables in the math region that have a mc2proe tag appear in the Outputs Selection dialog box.
After you have tagged the PTC Mathcad Prime variables and saved the PTC Mathcad Prime worksheet, load the worksheet file in a PTC Mathcad Prime analysis and map the required Creo Parametric parameters and dimensions to the PTC Mathcad Prime variables for the analysis.
When you load the PTC Mathcad Prime worksheet file, Creo Parametric converts the name of the PTC Mathcad Prime results variables in the math region tagged with mc2proe from lowercase to uppercase. Note that the names are converted to uppercase only after you create parameters in Creo Parametric.
 
* PTC Mathcad Prime variable names that are not converted do not appear in the Outputs Selection dialog box.
You can also perform a unidirectional PTC Mathcad Prime analysis by selecting either PTC Mathcad Prime assignment variables or PTC Mathcad Prime results variables. Using PTC Mathcad Prime you can compute values and use these values as regular Creo Parametric features for modeling and analyses. You can also monitor the PTC Mathcad worksheet corresponding to the created PTC Mathcad Prime analysis feature.
If you set the mathcad_automapping configuration option to yes and load a PTC Mathcad Prime file, Creo Parametric top-level parameters are automatically mapped to tagged PTC Mathcad Prime assignment variables that have the same names.
Use the mathcad_analysis_directory configuration option to set the default directory for the PTC Mathcad Prime files used in analysis calculations.
 
* However, while creating a PTC Mathcad Prime analysis feature, the PTC Mathcad Prime files should be placed in the Creo Parametric working directory.
When you retrieve a PTC Mathcad Prime analysis or when a PTC Mathcad Prime Analysis feature is regenerated, Creo Parametric searches for PTC Mathcad Prime files in the following order:
In the PDM Workspace if in linked session
In the directory specified by the mathcad_analysis_directory configuration option
In the Creo Parametric working directory
In the Creo Parametric startup directory