Joined: Jul 31, 2011
Post Count: 3
Status:
Offline
Re: Plugin - Creating Objects with other Properties
Byron, thanks for your reply. i spent a lot more time with your code since i posted and i was able to figure out the parts of sh3d that you changed, also thanks to help from sicodelicos2003.
you're right, making these changes prevents updates to sh3d, so it isn't the best approach. also, i need to add a much larger list of properties and i need the properties to vary by object, so your approach won't work for that reason as well.
i emailed emmanuel with the details of what i need. if he feels it's worth it to discuss those details here, i would have no objection.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Plugin - Creating Objects with other Properties
I just allowed you to attach some documents to your posts (max size 2 MB).
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Apr 16, 2011
Post Count: 11
Status:
Offline
Re: Plugin - Creating Objects with other Properties
So here the Manual as PDF and Word Document. I hope it will be helpful and there might be some parts missing especially for the case (2).
Emanuel, do you know a way how to make this process easier?
---------------------------------------- How to extent an Object in SweetHome3D.pdf
(10488 bytes)
(Download count: 451)
(PDF Manual for extending the standard object classes with new properties or by creating new classes by inheritance from the standard class.)
---------------------------------------- How to extent an Object in SweetHome3D.doc
(35840 bytes)
(Download count: 391)
(Word Manual for extending the standard object classes with new properties or by creating new classes by inheritance from the standard class)
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Plugin - Creating Objects with other Properties
Sorry if my answer comes late, but for your information, in version 3.4, furniture instantiation will be centralized in the createHomePieceOfFurniture method of the FurnitureController class, and you'll be able to override it in a derived version if you need to instantiate furniture classes of yours.
Expect more documentation about how to create a derived version of Sweet Home 3D in the coming weeks...
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Jan 15, 2013
Post Count: 17
Status:
Offline
Re: Plugin - Creating Objects with other Properties
Hi Bryon, is it possible for you to share the code for how to create new catalog elements. I have to do something similar where i have to create new catalog entries, basically a new library that will be there when sweethome 3d starts.