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
Setting the exact location of the export
This topic has been viewed 4912 times and has 2 replies
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
Re: Setting the exact location of the export
To do what I need, I just used the class
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.
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.
Code: Select all
FileContentManagerand 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.
Code: Select all
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);
}*/
Who is online
Users browsing this forum: No registered users and 1 guest