示例:将角度尺寸导出到 PTC Mathcad Prime
摘要 - 本例说明如何将角度尺寸导出到 PTC Mathcad Prime。
问题 - 需要用 PTC Mathcad Prime 变量 x:=30 deg 映射 Creo Parametric 角度尺寸 d36。
解决方案 - 将 PTC Mathcad Prime 变量 x 度重新定义为 x 弧度,并创建 PTC Mathcad Prime 分析特征。
下列步骤概括了这个示例:
1. 在 PTC Mathcad Prime 中加载现有的 PTC Mathcad Prime 文件,其扩展名为 .mcdx。
2. 将 PTC Mathcad Prime 分配变量 x:=30 deg 重新定义为 x:=0.52 rad。
3. 在数学区域中,选择 PTC Mathcad Prime 分配变量 x:=0.52 rad。
4. 单击“输入/输出”(Input/Output) > “分配输入”(Assign Input),将 PTC Mathcad Prime 分配变量分配为输入。
5. 要查看定义的输入变量,请单击“输入/输出”(Input/Output) > “以列表显示”(Show As List)。“输入/输出指定”(Input/Output Designation) 对话框打开,其中列出 PTC Mathcad Prime 输入变量及其别名。
6. 要编辑特殊变量的别名,请单击“别名”(Alias) 列下显示的名称,并输入新名称。
|
为 PTC Mathcad Prime 输入变量定义的别名会显示出来,以在分析过程中,在 Creo Parametric 中选择。
|
7. 单击“文件”(File) > “保存”(Save),以扩展名 .mcdx 保存 PTC Mathcad Prime 文件。
8. 在
Creo Parametric 中,打开模型并单击
“工具”(Tools) >
“参数”(Parameters)。
“参数”(Parameters) 对话框打开。
9. 在“查找”(Look In) 下,选择想要对其添加参数的对象类型。
10. 单击
来创建参数,在
“名称”(Name) 列中键入
ANGLE 作为参数名称,并选择单位
rad。
11. 单击
“工具”(Tools) >
“关系”(Relations)。在打开的
“关系”(Relations) 对话框中,单击
“实用工具”(Utilities) >
“单位敏感性”(Unit Sensitive)。
12. 在“查找范围”(Look In) 下,选择所需的对象类型以应用关系。
13. 在“关系”(Relation) 下,键入区分单位的关系 ANGLE=d36*pi/180,然后按 ENTER 键。该关系说明,ANGLE 参数由 d36 尺寸驱动。
14. 单击“实用工具”(Utilities) > “校验”(Verify),校验已输入的关系。
15. 单击
“分析”(Analysis) >
“Prime 分析”(Prime Analysis)。
“Prime 分析”(Prime Analysis) 对话框打开。
16. 在“文件”(File) 下单击“加载文件”(Load File),并选择扩展名为 .mcdx 的文件。
17. 加载 PTC Mathcad Prime 文件之后,在“PTC Creo Parametric 至 Prime”(PTC Creo Parametric to Prime) 下的 Creo Parametric 列下的空白行中右键单击,然后单击“选择 PTC Creo Parametric 参数”(Select PTC Creo Parametric parameter)。从“参数选择”(Parameter Selection) 对话框中选择 ANGLE 参数。ANGLE 参数、其当前值及单位都会显示在“PTC Creo Parametric 至 Prime”(PTC Creo Parametric to Prime) 表中。
18. 要选择 PTC Mathcad Prime 输入变量,请在“PTC Creo Parametric 至 Prime”(PTC Creo Parametric to Prime) 中 Prime 列下包含 Creo Parametric 尺寸或参数的行内单击右键,然后单击“选择 Prime 输入”(Select Prime input)。在“输入选择”(Input Selection) 对话框中,单击 PTC Mathcad Prime 输入变量 x,以用 ANGLE 参数映射该变量。
19. 根据需要定义其余的分析。
20. 要在分析特征中保存此分析,请单击“添加特征”(Add Feature) 并输入特征名称。一个新的分析特征出现在“模型树”中。