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:
<p>dataAlignment[0] = 1; //1 to export flat-pattern geometry; 0 to not</p><p>dataAlignment[1] = 0; //1 to include hidden edges; 0 to not</p><p>dataAlignment[2] = 0; //1 to export bend lines; 0 to not</p><p>dataAlignment[3] = 0; //1 to include sketches; 0 to not</p><p>dataAlignment[4] = 0; //1 to merge coplanar faces; 0 to not</p><p>dataAlignment[5] = 0; //1 to export library features; 0 to not</p><p>dataAlignment[6] = 0; //1 to export forming tools; 0 to not</p><p>retVal = swPart.ExportToDWG(newPath, //FilePath </p><p> modelName, //ModelName </p><p> 1, //Action </p><p> true, //ExportToSingleFile </p><p> null, //Alignment </p><p> false, //IsXDirFlipped </p><p> false, //IsYDirFlipped </p><p> options, //SheetMetalOptions </p><p> null); //Views </p>SolidworksApi macros
