Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2529 times and has 2 replies Next Thread
SystemOfAFrown
Newbie



United States
Joined: Jan 15, 2022
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
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.

[Jan 15, 2022, 7:47:21 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Jan 16, 2022, 10:34:45 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
SystemOfAFrown
Newbie



United States
Joined: Jan 15, 2022
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
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?
[Jan 16, 2022, 9:17:37 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved