Print at Dec 20, 2025, 6:44:21 AM
Posts: 26   Pages: 3   [ Previous Page | 1 2 3 ]
View all posts in this thread on one page
Posted by unrazzle at Aug 1, 2011, 6:45:40 PM
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.

Posted by Byron at Aug 5, 2011, 10:49:01 PM
Re: Plugin - Creating Objects with other Properties
So I have written a document about
"How to extent an objects functionality"
It is some sort of short manual.
Is there a possibility to upload it here?

Posted by Puybaret at Aug 6, 2011, 9:29:36 AM
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

Posted by Byron at Aug 6, 2011, 11:10:41 AM
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?
----------------------------------------
Attachment How to extent an Object in SweetHome3D.pdf (10488 bytes) (Download count: 3943) (PDF Manual for extending the standard object classes with new properties or by creating new classes by inheritance from the standard class.)

----------------------------------------
Attachment How to extent an Object in SweetHome3D.doc (35840 bytes) (Download count: 3714) (Word Manual for extending the standard object classes with new properties or by creating new classes by inheritance from the standard class)


Posted by Puybaret at Oct 1, 2011, 12:40:03 AM
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

Posted by anandunadkat at Jan 23, 2013, 4:23:27 PM
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.

Thanks a lot

Posts: 26   Pages: 3   [ Previous Page | 1 2 3 ]