@@ -243,7 +243,7 @@ public static void runArgumentsAfterStartup(String[] args, long startTime)
243243 }
244244 }
245245 if (startLoadingScripts ) {
246- processReturnedObjectsStart (ret , null );
246+ processReturnedObjectsStart (ret , new File ( "." ) );
247247 finish (startTime );
248248 return ;
249249 }
@@ -391,8 +391,10 @@ public void progressUpdate(int currentIndex, int finalIndex, String type,
391391 }
392392
393393 });
394+
394395 if (baseWorkspaceFile != null ) {
395- File baseDirForFiles = new File ("./manufacturing/" );
396+
397+ File baseDirForFiles = new File (baseWorkspaceFile .getAbsolutePath ()+"/manufacturing/" );
396398 if (baseDirForFiles .exists ()) {
397399 // baseDirForFiles.mkdir();
398400 File bomCSV = new File (
@@ -422,6 +424,8 @@ public void progressUpdate(int currentIndex, int finalIndex, String type,
422424 e .printStackTrace ();
423425 }
424426 }
427+ }else {
428+ baseDirForFiles .mkdirs ();
425429 }
426430 }
427431 ArrayList <CSG > csgBits = new ArrayList <>();
@@ -435,7 +439,7 @@ public void progressUpdate(int currentIndex, int finalIndex, String type,
435439 else {
436440 System .out .println ("Exporting files without print bed" );
437441 }
438- new CadFileExporter ().generateManufacturingParts (csgBits , new File ( "." ) );
442+ new CadFileExporter ().generateManufacturingParts (csgBits , baseWorkspaceFile );
439443 } catch (Throwable t ) {
440444 t .printStackTrace ();
441445 fail ();
0 commit comments