I am trying to open a .x_t (parasolid) file in my c# addin.
I have tried a few different opens, and options and nothing yet, it just silently fails with no warnings or errors.
Currently I am using:
iSwApp.OpenDoc6(xtPath, (int)SWConst.swDocumentTypes_e.swDocPART, (int)SolidWorks.Interop.swconst.swOpenDocOptions_e.swOpenDocOptions_LoadModel, "", ref saveErrors, ref saveWarnings);
It is likely something very simple that I am missing.
You must use ISldWorks::LoadFile4 to open non-native files.
SolidWorks API Training
Thank you. I was using this earlier as part of importing the file into a part, so I never thought of using it to just open the file!
Retrieving data ...