Print at Dec 22, 2025, 2:48:17 PM View all posts in this thread on one page
Posted by yurivict at Jul 7, 2022, 7:26:26 PM
Where 3D models should be placed for SH3D program to see them automatically?
I would like to package extra SH3D models such that they would be found automatically.

SH3D itself works from this JAR /usr/local/share/java/classes/SweetHome3D-6.6.4.jar

Is there a system location where additional *.sh3f files (for example Contributions.sh3f) should be placed where SweetHome3D would automatically discover them when it runs? The location has to be under /usr/local (PREFIX).

Posted by Puybaret at Jul 11, 2022, 2:43:03 PM
Re: Where 3D models should be placed for SH3D program to see them automatically?
The location where SH3F files are stored depends on user's system:
- Under Windows Vista / 7 / 8 / 10 11, it's the folder C:\Users\user\AppData\Roaming\eTeks\Sweet Home 3D\furniture (where user is its login)
- Under Windows XP, it's the folder C:\Documents and Settings\user\Application Data\eTeks\Sweet Home 3D\furniture
- Under Mac OS X, it's the subfolder Library/Application Support/eTeks/Sweet Home 3D/furniture of user's home folder
- Under Linux, it's the subfolder .eteks/sweethome3d/furniture of user's home folder.

By the way, if you're some kind of Linux repository manager or have a way to speak with them, please stop making Sweet Home 3D depend on last Java version. It generally works better with Java 8.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by yurivict at Jul 12, 2022, 2:42:25 AM
Re: Where 3D models should be placed for SH3D program to see them automatically?
> - Under Linux, it's the subfolder .eteks/sweethome3d/furniture of user's home folder.

Hi Emmanuel,

Unfortunately home directory doesn't work in order to install 3D models/plugins through the package.
The location should be read-only, under $PREFIX.
Something like /usr/local/share/sweethome3d/furniture.

Is it possible to make sweethome3d to look for 3D models and plugins in a location like this?


Thanks,
Yuri