Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 5
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3838 times and has 4 replies Next Thread
cristeab
Newbie



France
Joined: Feb 1, 2013
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
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
[Feb 1, 2013, 7:47:47 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9178
Status: Offline
Reply to this Post  Reply with Quote 
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
[Feb 5, 2013, 7:37:57 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
cristeab
Newbie



France
Joined: Feb 1, 2013
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: Inserting objects at specified location in a building plan

I would like to use Sweet Home 3D for object tracking inside a building.
[Feb 5, 2013, 8:24:57 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9178
Status: Offline
Reply to this Post  Reply with Quote 
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
[Feb 5, 2013, 8:32:18 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
cristeab
Newbie



France
Joined: Feb 1, 2013
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
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 ?
[Feb 5, 2013, 8:59:43 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved