Print at Jan 29, 2026, 2:17:18 PM View all posts in this thread on one page
Posted by Mitsaki at Nov 6, 2011, 8:24:47 PM
Setting the exact location of the export
Hello again,

what I want to do is to modify the existing interface, so that when the export to .obj file runs, the window, that the user uses in order to save the project, doesn't run and the project is saved directly in a desirable path.

Do you know where I should look to find the place that this is done, in which class?

I would really appreciate it.
Mitsaki

Posted by Puybaret at Nov 10, 2011, 1:00:42 AM
Re: Setting the exact location of the export
The path of the SH3D file is simply returned by the getName method of the Home object.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by Mitsaki at Nov 10, 2011, 4: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.