Joined: Apr 22, 2017
Post Count: 1
Status:
Offline
Batch files for loading plans
Instead of using the graphics interface, does SweetHome 3D have a way of importing batch files? In other words, say I have a plan with 100 walls and I know the beginning and ending point of each wall and their thicknesses. Instead of using the graphics interface to draw all 100 walls I'd like it if SweetHome 3D could read a file like:
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: Batch files for loading plans
..draw all 100 walls I'd like it if SweetHome 3D could read a file like...
Interesting question, nice idea. Short answer is, no, but ... thanks to SH3D .xml there are workarounds (for 100 walls, you may be better off doing it manually using CTRL-SHIFT-move with some template walls, though).
Long answer is, extract Home.xml from a simple .sh3d file and edit. The XML is nicely formatted and straightforward to read. For instance, a simple home with four walls (and corners) and one wall across, will have some introductory stuff and walls specified at the end:
If this XML does not look frightening, you will probably also know what to do to batch import (use cm!). To be more specific, for instance like this, step by step.:
Make a simple home with one wall in SH3D.
Save and compress.
Rename file to .zip.
Open .zip and extract Home.xml for editing.
Create a spreadsheet with . decimal separator.
Enter/paste the required values for each wall in A1 to I1
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Batch files for loading plans
If you know Java, you could also try to program a plug-in that would read a file at the format you want, parse it and call Sweet Home 3D API to add the matching walls to the edited home.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator