Export CAD to SH3D
An interior design application to draw house plans & arrange furniture
Brought to you by:
puybaret,
space-mushrooms
UI
Last edit: xlance 2025-04-04
cad2walls.lsp
cad2walls.jar
Note:
Added an Experimental option in cad2walls.lsp to mark lines which should be recognized as joined in SH3D.
Lines are marked with a letter "j" at the beginning of each line.
Then cad2walls.jar identifies the 'j' tag and add additional code to join them.
However because the Autolisp script and SH3D read points in a different order, joined lines in output, sometimes do not match with marked lines by the script !
For best results join Outer border lines only :-)
Last edit: xlance 2025-04-07
cad2walls.lsp
cad2walls.jar
Note:
Last edit: xlance 2025-04-12
I can't get the conversion from cad2walls.Input.txt to SH3D to work. I've tried both my own CAD files and ones downloaded from this site. I also tried the 32-bit and 64-bit versions of Sweet Home 3D, but that didn't help.
I tried these:
"C:\Program Files (x86)\Java\latest\jre-1.8\bin\java.exe" -jar cad2walls.jar
"C:\Program Files (x86)\Java\jre1.8.0_461\bin\java.exe" -jar cad2walls.jar
And these:
C:\cad2walls>java.exe -jar C:\cad2walls\cad2walls.jar
Min X: 1000.0, Max Y: 9687.0
Translate X: -1000.0, Translate Y: -9635.0
Deleted temporary XML file: Home.xml
Generated: cad2walls.Output.sh3d
C:\cad2walls>java.exe -jar C:\cad2walls\cad2wallsolder.jar
Min X: 1000.0, Max Y: 9687.0
Translate X: -1000.0, Translate Y: -9635.0
Deleted temporary XML file: Home.xml
Generated: cad2walls.Output.sh3d
C:\cad2walls>java.exe -jar C:\cad2walls\cad2wallsoldest.jar
Deleted temporary XML file: Home.xml
Generated: cad2walls.Output.sh3d
It just say Error: Can't open home "C:\cad2walls\cad2walls.Output.sh3d"
Last edit: Seppo Taalasmaa 2025-09-09
Here is one example of broken output.
I used this input file.
The problem is with decimal separator in Home.xml file inside of .sh3d file. Is "," in place of "."
xStart='0,0000' yStart='-5200,0000' xEnd='1424100,0000' yEnd='-5200,0000'
have to be
xStart='0.0000' yStart='-5200.0000' xEnd='1424100.0000' yEnd='-5200.0000'
You have to replace 'comma' with 'period' for all your walls.
Probably you have set this locale somewhere in your system or for some applications.
Hello
Thank You Dorin Vatavu :-)
Values in your cad2walls.Input.txt are too large so I used 1% scale, and sh3d was opened correctly on my pc :-)
Attached is an Update of 'cad2walls.jar' which accepts either ' . ' or ' , '
Cheers
Last edit: xlance 2025-09-10
Thank you, but that did not resolve the issue. Apparently, Java takes the decimal separator from Windows, as I was able to get it to work by forcing Windows to pretend that I am in the US. Attached are the Windows locale settings that work.
Here are the correct locale settings for me, where the comma is used as a separator, but then generated cad2walls.Output.sh3d no longer opens.
I guess the issuse is not with ' , ' instead of ' . ' but of thousands sperator ' ' instead ' , '
Try this adjusted version on finnish local settings !