Print at Apr 9, 2020, 3:32:36 PM
Posted by jaffguo at Sep 30, 2014, 5:49:54 PM
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

Posted by Puybaret at Oct 6, 2014, 5:53:39 AM
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