How to get catalogID for a plugin furniture?

This topic has been viewed 5694 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
jaffguo
Posts: 3
Joined: Tue Sep 30, 2014 5:38 pm

How to get catalogID for a plugin furniture?

Post by jaffguo »

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

Re: How to get catalogID for a plugin furniture?

Post by Puybaret »

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

Who is online

Users browsing this forum: No registered users and 1 guest