France
Joined: Feb 1, 2013
Post Count: 3
Status:
Offline
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.
France
Joined: Nov 7, 2005
Post Count: 9178
Status:
Offline
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 developer
France
Joined: Nov 7, 2005
Post Count: 9178
Status:
Offline
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 developer