|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Plugin - Creating Objects with other Properties » » » » Post: Re: Plugin - Creating Objects with other Properties |
Print at Dec 21, 2025, 11:34:03 PM |
| Posted by alied at Apr 18, 2011, 6:33:47 PM |
|
Re: Plugin - Creating Objects with other Properties how can I control it without changing the SH3D code? you can add a listener to your Home object[1], then create your custom PieceOfFurniture, delete the original, and add yours (remember either remove your listener before adding your object, or check before if it's your item, or you can get into a infinite loop) Also I want to modify its properties window. That will be more complicated: You can start extending com.eteks.sweethome3d.swing.HomeFurniturePanel[2], then search in com.eteks.sweethome3d.swing.PlanComponent[3] and there should be where to change(as far as I know SH3D, you will have to modify the code) to check the selected items and show your custom dialog. Anyway, Emanuel can provide more details (and if I find something usefull, I'll tell you) Best of luck Alied [1]http://www.sweethome3d.com/javadoc/com/eteks/...model.CollectionListener) [2]http://www.sweethome3d.com/javadoc/com/eteks/...g/HomeFurniturePanel.html [3]http://www.sweethome3d.com/javadoc/com/eteks/.../swing/PlanComponent.html |
|
|
Current timezone is GMT Dec 21, 2025, 11:34:03 PM |