|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Can you modify an existing .SH3D model with the API? |
|
| Print at Dec 18, 2025, 12:33:35 AM | View all posts in this thread on one page |
| Posted by SystemOfAFrown at Jan 15, 2022, 7:47:21 PM |
|
Can you modify an existing .SH3D model with the API? Hello, I was wondering if you can use either the Java or Javascript API's to modify an existing .sh3d file.model. The best example I can give for this, is having the user enter their preferences for color and design tastes on a webpage; and then the API code would change the colors of the walls; within the floorplan for example. It would be the same manufactured home each time, so it would be from the same template .sh3d file. Thank you for your time. |
| Posted by Puybaret at Jan 16, 2022, 10:34:45 AM |
|
Re: Can you modify an existing .SH3D model with the API? Even if it would work quite differently in Java and JavaScript, both APIs let you open a SH3D file, change its content and save the result. In Java, you can program an application which calls readHome and writeHome of HomeFileRecorder class with modifications of the read home meanwhile. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by SystemOfAFrown at Jan 16, 2022, 9:17:37 PM |
|
Re: Can you modify an existing .SH3D model with the API? Are there any good tutorials or documentation on how to get started with this class and the overall workflow for the Java API? |
|
|
Current timezone is GMT Dec 18, 2025, 12:33:35 AM |