Calc on Dimension Label

Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Calc on Dimension Label

Arthur Emmanuel
Greetings from the Pantanal, Brazil,

We need different scales in the same drawing. To avoid paper space and more dimension styles, the calc function on Dimension Label would be interesting. In the same object with a diameter of 30.00 that was enlarged 2x, in the property on the dimension, I could have written <>*0.5 in label, or an equivalent expression, for a dimension of 60.00 to become 30.00. Could this be possible?



Reply | Threaded
Open this post in threaded view
|

Re: Calc on Dimension Label

dxli
Currently, it's not possible.

We may consider adding a feature here, for example dimension by a function,to support nonlinear measurement.

Another feature, we want is views, to properly address the current issue.

Measurement by a function would be easier to support, but probably not within dxf specifications.
Arthur Emmanuel wrote
Greetings from the Pantanal, Brazil,

We need different scales in the same drawing. To avoid paper space and more dimension styles, the calc function on Dimension Label would be interesting. In the same object with a diameter of 30.00 that was enlarged 2x, in the property on the dimension, I could have written <>*0.5 in label, or an equivalent expression, for a dimension of 60.00 to become 30.00. Could this be possible?

Reply | Threaded
Open this post in threaded view
|

Re: Calc on Dimension Label

LordOfBikes
Administrator
In reply to this post by Arthur Emmanuel
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
Reply | Threaded
Open this post in threaded view
|

Re: Calc on Dimension Label

Arthur Emmanuel
Thanks. In tests with other viewer and CAD, <> returned the numeric value.
Feel free to request the feature, LordOfBikes. I believe you will have better arguments.