|
Sweet Home 3D Forum » List all forums » » Forum: Installation » » » Thread: Basic Code Required » » » » Post: Re: Basic Code Required |
Print at Dec 21, 2025, 11:37:37 PM |
| Posted by rohanbhanu at Jun 5, 2013, 8:33:21 AM |
Re: Basic Code RequiredI am attaching code for reference. try { Class c=Class.forName("com.eteks.sweethome3d.model.Home"); Home hm=(Home)c.newInstance(); hm=new Home(); hm.setName("rohan"); hm.addLabel(new Label("MyHome", 1, 11)); Level arg0 = new Level("rohan",20,1,3); out.print("asdasdasd"); hm.addLevel(arg0); hm.getPrint(); hm.setModified(true); Room rom; Room room=new Room({{},{}}); hm.addRoom(room); }catch(Exception e){out.print(e.getMessage());} Using this code I can initialize the home class. But what is method to display the home preview after adding walls and furniture. |
|
|
Current timezone is GMT Dec 21, 2025, 11:37:37 PM |