I have some old AutoCAD files that have 3D in them. SolidWorks can open them. I would like to automate stepping through all of them and saving to a neutral format. The only step I can't figure out is an API call to open non-SW part files.
Check out ISldWorks::LoadFile4. The help file describes its use as for non-native files being loaded into a new model document.
I tried several things, but only retrieved 2d entities from the AutoCAD file, even though it has 3d which SW can read.
What arguments did you use? When I recorded the process, the line I got was:
boolstatus = swApp.LoadFile2(filename w/ path here, "0 0")
Retrieving data ...