# Pro/ENGINEER-Mathcad Integration. Units.

Pro/ENGINEER-Mathcad Integration. Units. Dimensions. (Length, Angle, Area, Volume).

1. Introduction

The new integration between Mathcad and Pro/ENGINEER has become available as of Pro/ENGINEER release Wildfire 3.0 (datecode M030) and later.

Users can associate any Mathcad worksheet with a Pro/ENGINEER part or assembly using the Analysis feature in Pro/ENGINEER. Parameters/Dimensions from Pro/ENGINEER can be input into Mathcad for engineering calculations. Values calculated in Mathcad can be mapped to parameters & dimensions in the model to further drive the design.

This example is intended to walk users through a typical Pro/ENGINEER Mathcad Analysis setup procedure and to emphasize some basic understanding of units’ compatibility.

2. The Model. This rectangular block will fit exactly in the cut made in the triangular cross-section block. The rectangularshaped block will be placed in this location using typical Pro/ASSEMBLY constraints (Mate/Align/etc) constraints. Another rectangular shaped block is assembled to this model in a Pro/ENGINEER assembly (*.asm) file. The final assembled geometry can be seen in Figure 3.

A simple model (Figure 1.) is to be examined, a 3D block of triangular shape cross-section. The model has a cut, made on the inclined surface, of dimensions shown in Figure 2.

1.

After you have opened the Pro/ENGINEER part examine the system of units this part was created in. The same units are the ones we are going to work with in this session. Use from Pro/ENGINEER main menu: >Edit >Setup >Units to accomplish this operation. The current system of units is the Pro/ENGINEER default1 [in-lbm-sec].

Obviously, these units can be changed, converted and interpreted. But, for our example we’re going to use inch (length)-lbm (mass)-seconds (time).

From the Pro/ENGINEER Model Tree edit the definition of Sketch 1. This sketch was created such that it 3. Modeling Technique defines the cross-section for the Pro/ENGINEER 3D geometry. The following dimensions (as shown in This example will be divided in 2 main steps. Figure 4.) will be displayed.

In the first step only the triangular-shaped geometry will be examined and integrated with a Mathcad worksheet. Pro/ENGINEER model dimensions will be input to Mathcad & values calculated from Mathcad mathematical operations reported back in Pro/ENGINEER.

In the second step, the assembly will be examined and both Pro/ENGINEER dimensions & analysis feature parameters will be input to Mathcad, then Mathcad will perform the mathematical calculations and report values back in Pro/ENGINEER. These values will be later used in a Behavioral Modeling Relation analysis feature.

4. Evaluation of Distances (Length, Angle). The given dimensions are: the base (Length_1= Start this example by retrieving the model from provided Winzip files in a Pro/ENGINEER session. The name of the Pro/ENGINEER part is triangle_block.prt.
1 You can investigate Pro/ENGINEER Help Center (‘Fundamentals’) for more details on basic & derived units used in Pro/ENGINEER.

15.00 inches) and angle (Angle_1=60 degrees). From Pro/ENGINEER main menu use: >Info

2.

and following computed values input back to Pro/ENGINEER: Angle_3. As you probably assumed. 2 The input variables are highlighted in blue in the Mathcad worksheet. and Length_2 & Length_3. Now.we’d have to tag these variables2 to be used in reading input from & output to Pro/ENGINEER.Pro/ENGINEER-Mathcad Integration. Use the same procedure to complete the tag operation Note that Angle_2 is known. we also have to tag the output variables such In order to accomplish this interaction –from Mathcad point of view. steps/formulas used to compute the angles & lengths are self-explanatory. and click in the box called Tag. that Mathcad provides the computed output back in Pro/ENGINEER. not a variable. The known angle (Angle_1) and dimension of the base (Length_1) will be input in Mathcad. & 11. Type in the name of the tag: proe2mc as seen in Figure 11. Units. this is done using the same operation as depicted in Figure 10. Once in Mathcad variable’s >Properties definition window. This operation can be easily identified in Figure 10. . and is 90 degrees. The output is highlighted in green. Click on the variable Length_1 from within the Mathcad worksheet. then right-mouse button and select >Properties. 5. for the other input variable (Angle_1). select the tab called Display.

click button Add Dimensions (as seen in Figure 15) such that we can access the dimensions of the model (the 1st one is Length_1) and input them to Mathcad.Pro/ENGINEER-Mathcad Integration. Once the Mathcad file is loaded. Select the 15 inches dimension as seen in Figure 16. Units. . After you’ve selected this dimension. access the dimensions of the triangular shaped model. After you have accessed Add Dimension. Pro/ENGINEER interface should provide the Mathcad variable that you’ve tagged in the previous steps (Length_1) as seen in Figure 17. click with the pointer of the mouse the 3D geometry. such that we can 7.

). we will maintain compatibility of units between Pro/ENGINEER and Mathcad worksheet. This operation will allow us to select Pro/ENGINEER parameter ANGLE_1_RAD that we have created in our previous steps. Before proceeding with the next input selection (Angle_1). Pro/E to Mathcad definition window (see Figure 21.). . Select this variable. Also. Thus.). and click OK. Click in the Mathcad Analysis definition window for Add Parameters as see in Figure 19. Next. 8. we need to select Pro/ENGINEER parameters for our next input (Angle_1). Pro/ENGINEER will ask for the selection of tagged variable from Mathcad (see Figure 20.Pro/ENGINEER-Mathcad Integration. Units. investigate units’ compatibility in Pro/ENGINEER’s Pro/E to Mathcad definition window (see Figure 18. Investigate units’ compatibility in Pro/ENGINEER’s Select this ANGLE_1_RAD parameter. and click OK in the Input Selection definition window.

Units. Once all the input & output has been specified in the Mathcad Analysis definition window (see Figure 24. Next. we need to use the same Mathcad Analysis definition window. Angle_3. Length_2. check the boxes for all 3 measures (see Figure 23.) and select OK. and Length_3). The system will provide the tagged parameters from Mathcad that evaluate Length_2. Check the boxes for the parameters that you need evaluated and input back in Pro/ENGINEER. This last operation completes the input from Pro/ENGINEER to Mathcad. 9. In this example.) click Compute button such that Mathcad can provide computed values for these variables (Angle_3. we need to retrieve the output from Mathcad worksheet (all the computations are performed by Mathcad) and provide it back in Pro/ENGINEER. Length_3 and the angle. In order to accomplish this operation. . Click on the button called Outputs as seen in Figure 22.Pro/ENGINEER-Mathcad Integration.

obviously. and Angle_2 is 90 degrees. from Pro/ENGINEER main menu select: >Tools >Relations.of unit value. and notice the updated value for this angle. Do not specify units for this parameter. Create a new Pro/ENGINEER parameter –let’s name it ANGLE_3_DEG. As expected. we’d like to set a certain angle in the model equal to this new angle value and. the value has to be in degrees for Pro/ENGINEER to interpret it correctly. .Pro/ENGINEER-Mathcad Integration. 11. The advantage of using Mathcad Analysis feature & parameters is that any Pro/ENGINEER changes made in the model will be reflected in the computations and therefore. parameters will update accordingly. This can be accomplished by using from Pro/ENGINEER main menu: >Tools >Parameter. For instance. since Angle_1 is 60 degrees. this ANGLE_3_DEG value is 30 (degrees). Units. now in degrees. Write a relation that converts the Mathcad MC_ANGLE_3 parameter from radians in degrees. Once this operation is completed. click OK in the parameter definition window. Next. Click OK in the relation editor definition window.). Verify the relation (see Figure 28.

60 degrees) to 45 degrees (see Figure 29. and then identify the new values for ANGLE_1_RAD. Restore the original angle value (back to 60 degrees).asm from the provided Winzip file.prt. and obviously ANGLE_3_DEG. These 2 parts were assembled using regular Pro/ASSEMBLY constraints (Mate. change dimension Angle_1 (currently. For instance. and used to evaluate Pro/ENGINEER Relation analysis feature parameters in the assembly model. and erase models from session. integration. regenerate and save the model. Align. The following steps and parameters can be attained/evaluated through different methods in Pro/ENGINEER. These new values updated accordingly (see Figure 30. The assembly has 2 components (parts): triangle_block.prt will be evaluated assembly as: 12.prt will be evaluated from a Pro/ENGINEER Mass Properties analysis feature. The volume & mass parameters of the triangular_block. Close Pro/ENGINEER window.prt and Regenerate the model. Retrieve in Pro/ENGINEER assembly 3d_asx. etc). . Integrating Mathcad Analysis Parameters in Pro/ENGINEER Analysis Features.) rectangular_block.Pro/ENGINEER-Mathcad Integration. Units. The volume & mass of the rectangular_block. We plan to evaluate the total volume & mass of the 5. The purpose of this example is to help end users understand the Pro/ENGINEER-Mathcad This last operation completes the first section of the suggested technique. Another Mathcad-Pro/ENGINEER integration example will be investigated in this section: Pro/ENGINEER Mathcad Analysis parameters will be input back in Pro/ENGINEER.).

The Mass Properties definition window will be displayed. and Time (seconds). but we will evaluate these 2 quantities using Mass Properties Analysis feature. Mass (lbm). basic units for: Length is (inches). where each Pro/ENGINEER part may or may not use similar system of units. Remember that these are the units at the assembly level. This step is very important since we’re about to evaluate the total volume & mass of the assembly. This can be accomplished by accessing from Pro/ENGINEER main menu: >Edit >Setup >Units. Notice that assembly4’s current system of units is “Pro/E Default”. using Pro/ENGINEER Mathcad Analysis feature. It is worth mentioning that the rectangular shaped block & triangle Pro/ENGINEER parts are made of different materials. That is. select tab Definition. Optionally. You may over. Open triangle_block. Start by examining the system of units used in the current 3d_asx.1.) a density equal to 0. Preparing the Pro/ENGINEER Assembly Model. Next. We need to evaluate the mass and volume of the triangular-shaped (triangle_block. This operation is needed so we can plan accordingly the Mathcad worksheet. customize In the end.Pro/ENGINEER-Mathcad Integration. Units. .29 lbm/in3. There are several procedures to accomplish this.prt in a Pro/ENGINEER window and select from main menu: >Analysis >Model >Mass Properties.or underevaluate the total values as a result of mismatching units. and specify (see Figure 33.prt) Pro/ENGINEER part. the name of this analysis feature to MASS_PROPS_TRIANGLE.asm assembly model. 4 13. Select radio button Feature under the tab entitled Analysis as seen in Figure 32. the total mass & volume of the entire 3d_asx. Use default coordinate system for computations.asm assembly will be evaluated using a Pro/ENGINEER Relation analysis feature. Verify the units for each part as: retrieve each assembly part in Pro/ENGINEER and use >Edit >Setup >Units. 5.

Check boxes for VOLUME & MASS such that the Mass Properties analysis feature parameters are created. we will use a Pro/ENGINEER Mathcad Analysis feature. The plan is to evaluate the volume of the block as surface area times the depth of the block. using the known material density value. & 36. These parameters report the volume (in3) and mass (lbm) for the triangle_block. Click for Pro/ENGINEER to compute the mass mathematical operations will be performed in Mathcad. Open rectangular_block. Instead. These 14. .prt component. and through the help of Mathcad Analysis feature input back in the Pro/ENGINEER model for properties’ values Click tab Feature (Figure 34. evaluate its mass. further computations. These are the dimensions in the model as presented in Figure 35.). Then. we can deploy the same method for the rectangular shaped component of the assembly.prt in a separate Pro/ENGINEER window. Units. .Pro/ENGINEER-Mathcad Integration. Obviously. In the first stage set the list of input for the Mathcad worksheet. Complete this Pro/ENGINEER feature by clicking Save the model and close the Pro/ENGINEER window.

the input from (or output to) Pro/ENGINEER & Mathcad worksheet variables have to be compatible. Specify the value for this parameter as 0. 5.2. we need to examine the Mathcad worksheet.Pro/ENGINEER-Mathcad Integration. in general) is m2. But. We have specified in the Mathcad worksheet the input for (Length.12 lbm/in3. and Volume_R_Block (or Volume. Create a new real number parameter (see Figure 37. so good! We have all the input required to compute surface area. Width. Next. Preparing the Mathcad Worksheet. The unit for density in “Pro/E Default” is [lbm/in3].xmcd worksheet in Mathcad. the units of So far. 15. and Depth) in inches. mainly concentrating on the units provided for the input from and output to Pro/ENGINEER.) called DENSITY. Examine this worksheet. we need to input the material density in the Mathcad worksheet. Also. As mentioned in our previous example. From Pro/ENGINEER main menu access: >Tools >Parameters. in general) is L (liters). and specify the units as per “Pro/E Default” system of units. . notice in the Mathcad worksheet that the default unit for Surf_Area (or Area. This can be identified in Figure 38. Open the supplied asx_dimensions_try1. volume and mass of the rectangular block component. Units.

and DEPTH) and DENSITY parameter in the Mathcad worksheet. Units. 17. WIDTH. . All this after you have successfully loaded the Mathcad worksheet in Mathcad Analysis definition window. - For LENGTH as seen in Figure 42: We need to input Pro/ENGINEER dimensions (LENGTH. Select the dimensions from the model using the pointer of the mouse and selecting the appropriate Mathcad variables as prompted by the system.Pro/ENGINEER-Mathcad Integration. - For WIDTH as seen in Figure 43: This can be accomplished using Add Dimensions button from Mathcad Analysis definition window (Figure 41).

This operation will bring up the Parameter Selection definition window (see Figure 47. 18. Ensure that you click OK after each selection of Mathcad variables from Input Selection definition window. - For DEPTH as seen in Figure 44: This was tagged in Mathcad for variable Density_R_Block. Units.). The input of dimensions is to be specified as in Figure 45.Pro/ENGINEER-Mathcad Integration. Next. . we have to specify the DENSITY parameter from Pro/ENGINEER. Click button Add Parameters from the Mathcad Analysis definition window as seen in Figure 46.