Print at Dec 17, 2025, 1:01:30 PM View all posts in this thread on one page
Posted by gaira at Jan 14, 2017, 9:03:42 PM
confused   Is it possible to export positions, orientations, and properties of all the furniture?
If it's not, what is the API to access such information?

I found a button to export the names and dimensions of furniture as CSV file, but what I need is basically all the information that's used to generate sh3d file. If I could unbinalize the sh3d file, it may also suffice the purpose. I'm reading the java doc, but unfortunately it is a little overwhelming for a programming beginner. Could somebody please give me a pointer?

Thank you very much in advance.

Posted by Puybaret at Jan 15, 2017, 12:33:00 AM
Re: Is it possible to export positions, orientations, and properties of all the furniture?
A .sh3d file is actually a zip file containing a Home.xml entry that describes the drawn home with furniture, walls, rooms... coordinates, and references the images and 3D models stored in the other zipped entries. The DTD of this XML file is given in HomeXMLHandler javadoc and here.
Read also the threads about Sweet Home 3D 5.3 and about Export to XML/OBJ plug-in.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator