-
Notifications
You must be signed in to change notification settings - Fork 10
Description
This section of the Wiki discusses naming conventions for custom properties:
https://wiki.freecad.org/Property_editor#Scripting
When you name a property in DD workbench, it suggests using underscores, which slightly conflicts with the above:
"Properties follow the CapitalCamelCase or PascalCase convention, meaning that each word starts with a capital letter, and there are no underscores. When the property editor displays such names, it leaves a space between each capital letter, making it easier to read."
When you insert, for instance, an IntegerConstraint, the Workbench initially tells you the format expected in the Value input box (initial, min,max, step) but as soon as you start typing, that disappears and you get the 'Cannot evaluate' in red above the input box.
It would be great if the expected format could persist in the red text until the dialogue is closed. In particular, I often forget which separator (comma or semicolon) should be used and when things should be quoted or not (strings/enumerations).
Would you happen to know if there is a list anywhere of the expected format for every possible property? There seem to be some gaps in the scope of Properties: length is a zero or greater float, but with a unit. I cannot see any way of having a zero or greater unitless number. Similarly, with FloatConstraint, I have to enter a step size. What if I want any real number between zero and six?
I guess this is more an issue for the general FC forum, but it would be good to know the complete details of what is currently available before trying to suggest changes or enhancements.