AnsweredAssumed Answered

What check GetWhatswrong method?

Question asked by テ ソ ン キ ム on Jun 16, 2016
Latest reply on Jun 19, 2016 by テ ソ ン キ ム

Hi all.

I have a program what i didn't make.

But i have to understand this program.

And i couldn't under stand about GetWhatsWrong method exactly.


please look this simple source.


var swApp = new SldWorks();

ModelDoc2 swModel = swApp.LoadFile4(filePath, "r", swImportData, ref errors);


ModelDocExtension swModelExt = swModel.Extension;

bool ret = swModelExt.SaveAs(convertFile

                    , (int)swSaveAsVersion_e.swSaveAsCurrentVersion

                    , (int)swSaveAsOptions_e.swSaveAsOptions_Copy

                    , swExportPDFData

                    , ref errors

                    , ref warnings);

object oFeatures;

                object oErrorCodes;

                object oWarnings;

                ret = swModelExt.GetWhatsWrong(out oFeatures, out oErrorCodes, out oWarnings);


This program open .x_t file with sloidworks. And save as extension solidworks file.

And check wrong to use GetWhatsWrong.

But i can't understand that GetWhatsWrong check what.

I have a .x_t file. and if i use this program, It make 14 SolidWorks files(drw, part, asm)

And Get 3 wrong Features finally, And all have ErrorCode 1(unknown err).


I want to know that GetWhatsWrong check about "to save" Or check about all of "swFeatureError_e".


Sorry row English skill. But If you understand my question, please teach me.

Thank you.