Open krushia opened 1 month ago
does this work in 0.21.2?
does this work in 0.21.2?
Nope. Same results.
This also affects _self.pi
(if a parameter named pi exists), foo.pi
, and <<foo>>.pi
. Interestingly it can't be entered at all in the expression editor, even with the conditional trick that usually lets me enter naughty things in the "currently not evaluated" half.
Is there an existing issue for this?
Problem description
FreeCAD provides limited access to the Python math module via expressions using the pseudoproperty
_math
._math.pi
and_math.e
don't seem to work, presumably because of the builtinpi
ande
constants (which are hardcoded and not related to the Python math ones at all) confusing the expression parser.For correctly working examples, try any of these in an expression:
Full version info
Subproject(s) affected?
Expressions
Anything else?
No response
Code of Conduct