Print at Dec 20, 2025, 10:43:50 AM
Posted by chicosRV at Jun 8, 2012, 8:41:27 PM
confused   Add furniture into the default furniture library from a plugin
Hello, I'd like to add furniture into the default furniture library from a plugin. Can you help me with that??

Posted by Puybaret at Jun 10, 2012, 10:03:38 PM
Re: Add furniture into the default furniture library from a plugin
Just create some instances of com.eteks.sweethome3d.model.CatalogPieceOfFurniture and add them to the furniture catalog returned by getFurnitureCatalog method available in the user preferences. To configure correctly CatalogPieceOfFurniture instances, have a look to com.eteks.sweethome3d.io.DefaultFurnitureCatalog class.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator