roboeng
Bioengineer
- Nov 27, 2001
- 7
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.
I checked out faq559-530 but did not see anything that helped solve my problem.
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.
I checked out faq559-530 but did not see anything that helped solve my problem.