Print at Dec 21, 2025, 12:59:37 PM
Posted by anandunadkat at Jan 21, 2013, 4:36:58 PM
Add furniture library to java code
Hi,

I have a new furniture library created with furniture library. I want to add it to my plugin so that when they open sweethome 3d, the plugin file will automatically load those new furnitures into the category.

Could someone please help on how to do this.

I really need this to be done pretty soon, so your help will be more than appreciated in this.

Thank you!

Posted by Puybaret at Jan 22, 2013, 10:30:39 AM
Re: Add furniture library to java code
I never tried it but this tip should work: read the furniture in your library file with the constructor of DefaultFurnitureCatalog class that takes URLs in parameter. Then add the furniture of this temporary catalog to the Sweet Home 3D catalog returned by user preferences getFurnitureCatalog method.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by anandunadkat at Jan 22, 2013, 6:09:14 PM
Re: Add furniture library to java code
Thanks for your reply. I dont want it to read from furniture folder because that would mean that users will have to manually put it in the folder.. How does the URL work? Have you got any idea?