United States
Joined: Jan 15, 2022
Post Count: 2
Status:
Offline
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.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
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