|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Export CAD to SH3D » » » » Post: Export CAD to SH3D |
Print at Dec 18, 2025, 1:12:49 PM |
| Posted by Xlance at Apr 26, 2025, 9:08:35 AM |
|
Export CAD to SH3D Hello A two step method to convert lines from Autocad to walls & polylines in Sweethome3d 1. Run"cad2walls.lsp" in Autocad > will generate "cad2walls.Input.txt" Put "cad2walls.Input.txt" in same folder as "cad2walls.jar" 2. Run "cad2walls.jar" > will generate "cad2walls.Output.sh3d" cad2walls.lsp + Added a a new function to create a Layer tag at the end of each line. + Curves are supported ( Arcs, Circles, Ellipses, and Splines ). + Simplified the process of Exporting points. + All lines are now saved as not joined and will be recognized as such in SH3D, this will prevent the effect of cross-linking. cad2walls.jar + Added a function to modify Scale before import into SH3D. + Added multi level error handling. + Added a new function to import coordinates as POLYLINES. + Added a new function to import BOTH, Polylines and Walls based on Layer tags. Notes: 1. Supported Layer tags are "Walls" and "Poly" only. 2. Removing a Layer tag completely, skips reading of item either a wall or a polyline ! 3. 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 :-) https://sourceforge.net/p/sweethome3d/plug-ins/56/ Cheers ---------------------------------------- Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins |
|
|
Current timezone is GMT Dec 18, 2025, 1:12:49 PM |