Print at Dec 25, 2025, 2:07:02 AM

Posted by Byron at Apr 16, 2011, 4:50:32 PM
Plugin - Creating Objects with other Properties
Dear SH3D Community,
I am a student and I am supposed to create new Objects for SweetHome3D.These Objects should be extended in terms of their properties. E.g. a field center of mass or other object specific modifiable information should be added.
(Actually the important part is to capture the joint and link configuration using unified robot description format (URDF)).

Therefore I would like to do this by writing an effective Plugin,
but I am not sure whether this is possible.

The tasks which I need are the following:

1) Reading in data from a meta-file e.g. in xml which contains
the information. (This I should be able to do without problems)
The xml will contain all information about:
joint configuration, path of the according dae-files, ...

2)Creating new Catalog-Categories and the Catalog-Object from this file and its information.

3)Being able to drag an drop this new objects to the floor plan and them being displayed in the 3D-View.
(This new object should have new property fields as Center of mass
in its property window then).

How would you advise me to proceed? Is it possible using a plugin
or not, since I might need to extend the class of PieceOfFurniture by
more property-fields.

Regards
Byron