|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Add furniture progamatically !!! » » » » Post: Re: Add furniture progamatically !!! |
Print at Dec 19, 2025, 9:52:34 PM |
| Posted by kleiba at May 1, 2012, 12:42:33 AM |
|
Re: Add furniture progamatically !!! Hi Emmanuel, Thanks for the quick reply! As I pointed out, I'm viewing the room through a HomeComponent3D component. Note that we are talking about a stand-alone application built on top of the SweetHome3D libraries, not a plugin that interacts with the SweetHome3D application itself. I'd be happy to post the source code of a minimal example - basically it's not much more than the above code inside a main-method, plus the creation of a HomeComponent3D and a JFrame. There are no stack traces because the program runs without complaints, i.e., no Exceptions are being thrown. It's just that the HomePieceOfFurniture object I add programmatically never gets displayed. Instead, I can see a 1^3m white cube for about one second where the HomePieceOfFurniture is supposed to be which then disappears. A first guess was that perhaps the model data of the HomePieceOfFurniture was not found correctly, but I made sure that this is not the case, or else the URLContent constructor would complain anyway. Thanks again for your help. Cheers, Thomas |
|
|
Current timezone is GMT Dec 19, 2025, 9:52:34 PM |