|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Adding new elements » » » » Post: Re: Adding new elements |
Print at Dec 20, 2025, 11:44:16 AM |
| Posted by Puybaret at Jul 1, 2012, 12:01:12 PM |
|
Re: Adding new elements Objects shown in the furniture catalog tree are CatalogPieceOfFurniture instances stored in FurnitureCategory and FurnitureCatalog objects. The furniture catalog in use in the program can be retrieved from UserPreferences instance that is proposed in plug-ins and many other places. The best way to learn how catalog pieces are handled is to study the DefaultFurnitureCatalog and FileUserPreferences classes. Modifying the current catalog will be automatically reflected in the catalog tree component, so try to understand first how to create these pieces and add them in the user preferences catalog with these two classes. By the way, it would be nice to explain what is your goal? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 20, 2025, 11:44:16 AM |