High priority Add furniture library to java code

This topic has been viewed 6372 times and has 2 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
anandunadkat
Posts: 17
Joined: Tue Jan 15, 2013 3:22 pm

Add furniture library to java code

Post by anandunadkat »

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!
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Add furniture library to java code

Post by Puybaret »

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
anandunadkat
Posts: 17
Joined: Tue Jan 15, 2013 3:22 pm

Re: Add furniture library to java code

Post by anandunadkat »

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

Who is online

Users browsing this forum: No registered users and 2 guests