Print at Dec 16, 2025, 7:04:32 PM

Posted by Mitsaki at Nov 10, 2011, 3:42:31 PM
Re: Setting the exact location of the export
To do what I need, I just used the class
FileContentManager

and I added blocked comment in the row 471-475, so the dialog box does not appear, like this and as savedName I put Our_home.
String savedName;
savedName = "Our_home";
// Use native file dialog under Mac OS X
/* if (OperatingSystem.isMacOSX()) {
savedName = showFileDialog(parentView, dialogTitle, contentType, name, true);
} else {
savedName = showFileChooser(parentView, dialogTitle, contentType, name, true);
}*/

The only thing that is missing now is to set the file, so that it is not saved automatically inside the sweethome3d folder, in workspace, but outside of it.