项目场景:
需求:在不登录Teamcenter和NX的情况下,导出CAD 模型
解决方案:
查看帮助文档,发现:
ug_clone
The ug_clone utility drives Clone Assembly, Edit Assembly, Import Assembly, and Export Assembly. The utility lists the available options. Specify the operation type (clone, edit, import, or export), and specify an input assembly or part.
如何运行(在4层架构环境下)?
- TC server端,确保在TC prompt command中运行。
- 检查TC_ROOT,TC_DATA是否设置
- 设置环境变量:UGII_UGMGR_COMMUNICATION=HTTP,UGII_UGMGR_HTTP_URL=http://server:port/<app_name> (app_name一般默认为tc)
- 命令实例:
c:\siemens\NX90\UGII\ug_clone.exe -pim=yes -u=infodba -p=infodba -g -o=export -par=@DB/part_number/01 -par=@DB/part_number/01 -par=@DB/part_number/01 -default_dir=c:\tmp -default_n=autotranslate