Inserting objects at specified location in a building plan

This topic has been viewed 4937 times and has 4 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
cristeab
Posts: 3
Joined: Fri Feb 01, 2013 7:40 pm
Country: Paris, Ile de France, France

Inserting objects at specified location in a building plan

Post by cristeab »

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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Inserting objects at specified location in a building plan

Post by Puybaret »

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
cristeab
Posts: 3
Joined: Fri Feb 01, 2013 7:40 pm
Country: Paris, Ile de France, France

Re: Inserting objects at specified location in a building plan

Post by cristeab »

I would like to use Sweet Home 3D for object tracking inside a building.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Inserting objects at specified location in a building plan

Post by Puybaret »

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
cristeab
Posts: 3
Joined: Fri Feb 01, 2013 7:40 pm
Country: Paris, Ile de France, France

Re: Inserting objects at specified location in a building plan

Post by cristeab »

Could you please provide an example of programmatically inserting and moving an object on the building plan ?
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest