Features

Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Help  | 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 3479 times and has 1 reply Next Thread
jaffguo
Newbie




Joined: Sep 30, 2014
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
How to get catalogID for a plugin furniture?

Hi,

I'm a new developer for Sweet Home 3D. I'd like to create my customized furniture and then pulgin into the Sweet Home 3D furniture list. Now I can create a customized furniture library with FurnitureLibraryEditor and Import it into the Sweet Home 3D furniture list. My question is that how can I get the CatalogID or any category-related information of the imported furniture via the getCatalogID() or getDescription() function or any other functions in the PieceOfFurniture API?

Thanks,

jaff
[Sep 30, 2014 5:49:54 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 5841
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to get catalogID for a plugin furniture?

If you have the catalog ID of a piece of furniture added to a home, you can find the matching piece in the furniture catalog, using preferences getFurnitureCatalog method. It contains all the methods needed to list furniture categories and the CatalogPieceOfFurniture instances it contains (with their IDs).
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Oct 6, 2014 5:53:39 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.eteks.com [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 2006-2017 eTeks - All rights reserved