|
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. |
|