Welcome Arthur Emmanuel!
That's a nice idea.
Thinking about it, I wonder if the
<> placeholder is a LibreCAD only feature and what other CAD will do with it. Probably its origin is in QCAD, then at least QCAD will show the intended result.
Adding calculator functionality will for sure break compatibility and cause issues with shared drawings. Other software will show the formula, not the result. But this might be already the case for most other software with the current
<> implementation.
I think we have to consider, that the label might contain additional text which should be shown raw with the calculated value. We have no prefix/postfix properties, thus it's the only way to add unit labels, as described in the
manual (see Hint).
So we need some other kind of limiter and keep the current implementation as it is.
I suppose, that a syntax like
{<>*0.5} mm can be implemented with moderate efforts.
The
{...} part will be replaced and the rest is shown as is.
Keeping
<> will allow to use the measured dimension anywhere in the formula.
We just need to consider how to allow the user to enter a regular
{ or
}.
Maybe double braces can solve this like
{{<>*0.5}} mm.
If you already have a GitHub account feel free to create a
feature request. Otherwise I can do this for you.
Add a link to this thread for reference.
Armin
investing less than half an hour into Search function can save hours or days of waiting for a solution