概要
使用Creo作为结构设计软件。经常需要与供应商或者第三方厂商进行模型交换。
需要手动将Creo模型转换为.stp或者.igs文件。
下面介绍一种简便快速将Creo模型转换为第三方格式的方法,不需要启动Creo,只需要命令行运行。以转换为.stp文件为例。
技术细节
Creo众多插件中,有“Creo Distributed Computing Extension” 模块,提供了批量处理模型的能力,它可以单机运行,处理本地磁盘的模型,也可以在Windchill环境中,处理Windchill中的模型。
- 安装Creo,注意选择“Creo Parametric Distributed Computing Extension”, 通过运行\Parametric\bin\ptcdbatch.bat使用。
- 运行命令: Creo loadpoint \Parametric\bin\ptcdbatch –nographics –process <dxc file path\file_name>.dxc
这样给了转换Creo模型的无限可能。后台批量转换,任务触发转换等。
- “-nographics”表示不启动UI界面,后台运行
- “file_name.dxc”保存了Creo模型的路径及转换方式
- 下面是“file_name.dxc”实例:
<DXC>
<Windchill>
<Server URL="https://your_server/Windchill" alias="product" dm_user="admin" dm_passwd="admin" workspace="admin"/>
</Windchill>
<Group TTD="C:/Program Files/PTC/Creo 3.0/M120/Common Files/text/ttds/step_3d_export.ttd" DSQM="_LOCAL" Name="STEP 3D Export" Output="2" OutputDir="c:\tmp\step" VaultResults="0" PrimaryContent="0">
<Object Context="test">wtpub://product/Products/test/29-teststp-01.prt|v=latest</Object>
<ConfigFile>C:\ptc\proe_temp\STPout_PTCdbatch\config.pro</ConfigFile>
</Group>
</DXC>
参数说明:
- TTD: 任务名称,可以为(stl_facet_export.ttd,step_3d_export.ttd,iges_3d_export.ttd,etc.)
- Output: 完成转换后,模型存储路径
- Object: 需要处理的模型,实例中配置了Windchill路径,大家也可以配置自己本地路径(c:\tmp\29-teststp-01.prt)
当然,你也可以在D-Batch UI界面中运行。选择配置好的file_name.dxc文件,点击运行即可。