I work frequently with Part/PartDesign primitives and it annoys me that I can define the offset using expressions but not the angle:
Therefore I wanted to add the missing expression feature but cannot figure out how. Has anybody a pointer for me please to learn how this is done?
how to add expression feature to a QuantitySpinBox
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: how to add expression feature to a QuantitySpinBox
As this angles are basically yaw/pitch/roll, I advise that you have a look at notes of issue #4106 and related links before getting started.
Re: how to add expression feature to a QuantitySpinBox
It seems that these are not enabled for expressions for the same reason as the Placement dialog is not expression aware: They are already calculated values.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: how to add expression feature to a QuantitySpinBox
My question is not bound to these specific SpinBoxes, but in general: How do I add the expression feature to a SpinBox?openBrain wrote: ↑Thu Mar 19, 2020 10:30 pm As this angles are basically yaw/pitch/roll, I advise that you have a look at notes of issue #4106 and related links before getting started.
Re: how to add expression feature to a QuantitySpinBox
https://github.com/FreeCAD/FreeCAD/blob ... rs.cpp#L97
All what's needed is to use the bind for the property you want to control. The ability to set expressions is done automatically.