Plugin - Creating Objects with other Properties

This topic has been viewed 23817 times and has 25 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
unrazzle
Posts: 3
Joined: Sun Jul 31, 2011 9:19 am

Re: Plugin - Creating Objects with other Properties

Post by unrazzle »

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.
Byron
Posts: 11
Joined: Sat Apr 16, 2011 4:31 pm

Re: Plugin - Creating Objects with other Properties

Post by Byron »

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?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Plugin - Creating Objects with other Properties

Post by Puybaret »

I just allowed you to attach some documents to your posts (max size 2 MB).
Emmanuel Puybaret, Sweet Home 3D creator
Byron
Posts: 11
Joined: Sat Apr 16, 2011 4:31 pm

Re: Plugin - Creating Objects with other Properties

Post by Byron »

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?
Attachments

[The extension doc has been deactivated and can no longer be displayed.]

[The extension pdf has been deactivated and can no longer be displayed.]

User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Plugin - Creating Objects with other Properties

Post by Puybaret »

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
anandunadkat
Posts: 17
Joined: Tue Jan 15, 2013 3:22 pm

Re: Plugin - Creating Objects with other Properties

Post by anandunadkat »

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests