DynamicData icon indicating copy to clipboard operation
DynamicData copied to clipboard

Allow editing of properties after creation

Open pitch-circle opened this issue 2 years ago • 1 comments

I have created a property that uses IntegerConstraint (https://wiki.freecad.org/FeaturePython_Custom_Properties#App::PropertyIntegerConstraint). After a bit of testing, I realise that the maximum value I entered for this is too high and would like to reduce it. The only way I can see to do this is to delete the property and redo it. It would be great if it were possible to edit these types of properties in the same way that we can edit configuration tables. Thanks.

pitch-circle avatar Jan 31 '24 17:01 pitch-circle

You can change it from the python console. Select the dd object, press Ctrl+Shift+P, and in the console enter:

obj.propertyname = (0,-360,360,1)

Replace propertyname with the actual name of your property.

Edit: Also, of course, change the values in the tuple.

mwganson avatar Feb 01 '24 05:02 mwganson