|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: Automating the creation of walls, placement of doors, » » » » Post: Re: Automating the creation of walls, placement of doors, |
Print at Dec 15, 2025, 7:27:16 PM |
| Posted by Puybaret at Jul 11, 2024, 6:16:18 PM |
|
Re: Automating the creation of walls, placement of doors, Yes, to create a wall, you have to create an instance of Wall class then add it to the Home instance returned by getHome method in the plug-in you'll define. For doors and staircases, you have to find the CatalogDoorOrWindow or CatalogPieceOfFurniture instance you want in the furniture catalog stored in user preferences, then use the catalog object to create a HomeDoorOrWindow or HomePieceOfFurniture instance, change its coordinates and size before adding it to the home instance with addPieceOfFruniture method. Objects added to home will appear in the plan and the 3D view accordingly. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 15, 2025, 7:27:16 PM |