mwganson / DynamicData

FreeCAD workbench for creating and managing custom property container objects.
GNU Lesser General Public License v2.1
41 stars 8 forks source link

Add option(s) to change and/or disable properties name prefix #65

Open silopolis opened 2 years ago

silopolis commented 2 years ago

Hi,

So, as already reported in #53 , it would be very nice to have the possibility to disable and/or rename it to another (possibly empty, if easier than a disable toggle ?) string. Having straight "Object.Name" scheme available would be really great 🙏 Further, this would allow to blend more seamlessly with the now builtin "Add property" feature. Finally, as the prefix can be removed with the "Rename Property" command, this saves the user a boring step.

mwganson commented 2 years ago

The dd prefix seemed like a good idea at the time. I regret it now, but so much of the code in the workbench expects that prefix to be there, it would be a lot of work now to change it. You can rename the property to get rid of it, but relabeling in the gui doesn't do it. The rename property ability was something I added recently, and in the new code the prefix is no longer required, so that's why renaming works as a boring way to remove the prefix, but some features of the workbench might not work for such renamed properties. I will keep your suggestion in mind.

luzpaz commented 1 year ago

Any updates on this issue?

mwganson commented 1 year ago

No updates. I actually still think it's useful to have the dd prefix. For example, when referencing a property from a sketch constraint if you enter "dd.dd" it brings up a useful list of properties from which the desired property may be selected. Did I named that property "top_length", "topLength", "length_of_top", or was it "top_len"? If you don't remember you might have to switch to the model view and go digging around in the dd object to find the name of the property.