几何尺寸与公差论坛

 找回密码
 注册
查看: 836|回复: 0

【转帖】using api to export parasolid

[复制链接]
发表于 2009-4-13 15:09:50 | 显示全部楼层 |阅读模式
using api to export parasolid
i am trying to write a macro that will take the current solid part i am working with export it to a file with a new name based on the original name, a custom revision field, and a custom description.  i have the code able to compile the filename and path as i want but cannot get it to export the file.  the statement i am using is from the help example:
    bret = swpart.saveas4(spathname, _
                              swsaveascurrentversion, _
                              swsaveasoptions_silent, _
                              nerrors, _
                              nwarnings)
the pathname i am entering is, for example:
c:\rd-1020 rev x4 housing-transmission.x_t
when i run the file it does nothing.  if i change the extension to .sldprt or .tif then it will save the file.  i am using sw 2004 sp 2.1 and no i cannot upgrade.  the documentation states that if you put the extension in this command should automatically do the conversion to the extension, but when i put in either .x_t or .igs nothing happens.  can someone help me figure this out.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 18:12 , Processed in 0.037489 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表