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: 2
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3434 times and has 1 reply Next Thread
chicosRV
Newbie




Joined: May 25, 2012
Post Count: 14
Status: Offline
Reply to this Post  Reply with Quote 
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??
[Jun 8, 2012, 8:41:27 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: 9426
Status: Offline
Reply to this Post  Reply with Quote 
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
[Jun 10, 2012, 10:03:38 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 2024 Space Mushrooms - All rights reserved