|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: How to run a new class in SH3D source » » » » Post: Re: How to run a new class in SH3D source |
Print at Dec 19, 2025, 6:32:33 AM |
| Posted by Puybaret at Aug 21, 2011, 10:44:35 AM |
|
Re: How to run a new class in SH3D source Ok, I think I understood what you want to do now. If you want to display a home built by program from a derived version of Sweet Home 3D, you should: - create a subclass of com.eteks.sweethome3d.SweetHome3D application class, - add a main method that will instantiate and init the application from the arguments - override the createHome method to return a com.eteks.sweethome3d.model.Home instance initialized the way you want. Here's a base example: import com.eteks.sweethome3d.SweetHome3D;Hope this will help you to start. ![]() ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 19, 2025, 6:32:33 AM |