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: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 6168 times and has 2 replies Next Thread
anandunadkat
Newbie




Joined: Jan 15, 2013
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
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!
[Jan 21, 2013, 4:36:58 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 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
[Jan 22, 2013, 10:30:39 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
anandunadkat
Newbie




Joined: Jan 15, 2013
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
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?
[Jan 22, 2013, 6:09:14 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