Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow editing of properties after creation #76

Open
pitch-circle opened this issue Jan 31, 2024 · 1 comment
Open

Allow editing of properties after creation #76

pitch-circle opened this issue Jan 31, 2024 · 1 comment

Comments

@pitch-circle
Copy link

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.

@mwganson
Copy link
Owner

mwganson commented Feb 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants