confused High priority Add furniture into the default furniture library from a plugin

This topic has been viewed 3730 times and has 1 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
chicosRV
Posts: 14
Joined: Fri May 25, 2012 4:37 pm

Add furniture into the default furniture library from a plugin

Post by chicosRV »

Hello, I'd like to add furniture into the default furniture library from a plugin. Can you help me with that??
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Add furniture into the default furniture library from a plugin

Post by Puybaret »

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest