When I save the model as DWG with code, flat pattern turned around 180 degrees. Why? And how to avoid it?
When I save the model as DWG via File - Save As... , everything is fine.
I save with method ExportToDWG.
My options:
SolidworksApi macrosdataAlignment[0] = 1; //1 to export flat-pattern geometry; 0 to not
dataAlignment[1] = 0; //1 to include hidden edges; 0 to not
dataAlignment[2] = 0; //1 to export bend lines; 0 to not
dataAlignment[3] = 0; //1 to include sketches; 0 to not
dataAlignment[4] = 0; //1 to merge coplanar faces; 0 to not
dataAlignment[5] = 0; //1 to export library features; 0 to not
dataAlignment[6] = 0; //1 to export forming tools; 0 to not
retVal = swPart.ExportToDWG(newPath, //FilePath
modelName, //ModelName
1, //Action
true, //ExportToSingleFile
null, //Alignment
false, //IsXDirFlipped
false, //IsYDirFlipped
options, //SheetMetalOptions
null); //Views