Print at Dec 19, 2025, 6:15:19 PM View all posts in this thread on one page
Posted by cristeab at Feb 1, 2013, 7:47:47 PM
Inserting objects at specified location in a building plan
Hi

Is there a way to insert (manually or programatically) new objects at a given position on a building plan ? I would like to be able to specify object position in cartezian coordonates (x,y,z) and to insert or remove this object in a building plan from my own program using an API.

thanks
Bogdan

Posted by Puybaret at Feb 5, 2013, 7:37:57 AM
Re: Inserting objects at specified location in a building plan
HomePieceOfFurniture instances can be moved with their setX, setY and setElevation methods. But why programming something you can already do with the existing user interface?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by cristeab at Feb 5, 2013, 8:24:57 AM
Re: Inserting objects at specified location in a building plan
I would like to use Sweet Home 3D for object tracking inside a building.

Posted by Puybaret at Feb 5, 2013, 8:32:18 AM
Re: Inserting objects at specified location in a building plan
Then call the methods of HomePieceOfFurniture. The listeners that are already added to a piece will automatically update its location at screen if necessary.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by cristeab at Feb 5, 2013, 8:59:43 AM
Re: Inserting objects at specified location in a building plan
Could you please provide an example of programmatically inserting and moving an object on the building plan ?