Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Using Api to export Parasolid

robo_eng

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

Sponsor

Articles From 3DCAD World

Back
Top