Italy
Joined: Nov 17, 2021
Post Count: 439
Status:
Offline
Re: Sweet Home 3D 7.2
For anyone who is not whatching the dedicated thread, I inform you that I've just released the version 4.0 of Pan 3D View plugin which is compatible with SweetHome3D 7.2. If you use Wirings and/or 3D dimension lines plugins, please update these too to the latest release available.
A note about 3D dimension lines: since SH3D now supports vertical dimension lines, the plugin is no longer required for most cases, however it is still useful to draw dimension lines with generic orientation in space.
As Keet noted here, I was able to add a new property to my library lights to replace the use of the Description property which can be changed by the user.
By using the system property com.eteks.sweethome3d.additionalFurnitureProperties in a configuration file for the installer or as a JAR executable parameter, it is possible to display the new property column without it being editable because in this case the Other properties button does not appear.
As for the management of this new property by the rendering plug-in, simply retrieve the object property from its name and test the values.
----------------------------------------
EnkoNyito
Netherlands
Joined: Apr 8, 2022
Post Count: 1065
Status:
Offline
Re: Sweet Home 3D 7.2
Great, I was already using the Description field to show the originating library (in bold) in the catalog tooltip. Without your change that would have interfered if I did that with your library.
---------------------------------------- Dodecagon.nl 750+ 3D models, manuals, and projects
Joined: May 28, 2015
Post Count: 607
Status:
Offline
Re: Sweet Home 3D 7.2
@Keet
The Description field is accessible and editable for users since SH3D-7.1.
For variable lights (automatic or daylight), there was a risk of interfering with the management of the rendering plug-in. Even if I had no feedback in this direction, I preferred to "secure" this management by updating the library with the new option proposed by SH3D-7.2.
According to my tests, several additional properties can have the same name because their identifier is different when they are created.
----------------------------------------
EnkoNyito
Netherlands
Joined: Apr 8, 2022
Post Count: 1065
Status:
Offline
Re: Sweet Home 3D 7.2
Yes, the Description field was already available in 7.1., I've been using it since it first became available through the Furniture Library Editor. Until the new features in 7.2. you had no other choice than to use some field to store the data for you lights. Although it worked it was a solution out of necessity, one I as a developer try to avoid whenever possible. You seem to be of the same opinion since you made the effort to make it right.
Most users will not realize how powerful this new addition to Sweet Home 3D is since it will mostly be used by plug-in developers. They now have to tools to add custom properties with a meaningful name and have control over them within their plug-ins. It gave you the option to create lights with custom properties not available in Sweet Home 3D.
Great work and excellent use of the new custom properties! As far as I know you are the first one to use these custom properties in furniture available for Sweet Home 3D.
---------------------------------------- Dodecagon.nl 750+ 3D models, manuals, and projects