Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3504 times and has 2 replies Next Thread
Mitsaki
Member




Joined: Jul 26, 2011
Post Count: 62
Status: Offline
Reply to this Post  Reply with Quote 
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
[Nov 6, 2011, 7:24:47 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Nov 10, 2011, 12:00:42 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Mitsaki
Member




Joined: Jul 26, 2011
Post Count: 62
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Nov 10, 2011, 3:42:31 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved