QCAD Bugtracker

  • Status Assigned
  • Percent Complete
    0%
  • Task Type Feature Request
  • Category QCAD (main)
  • Assigned To
    Andrew
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 3.28.1
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
    • CVH (11.06.2023)
  • Private
Attached to Project: QCAD Bugtracker
Opened by CVH - 11.06.2023
Last edited by Andrew - 11.06.2023

FS#2478 - Make RMathLineEdit unit aware

Andrew,

Related topic: https://www.qcad.org/rsforum/viewtopic.php?f=32&t=10094

When entering 1’ 1’‘ in an input field.
- As the size of the rectangle in the topic
- As the length property of a line selected in the drawing
- ....

Returns 13 in a drawing in mm.
And also in a drawing in inch what turns out to be correct.
But also in a drawing in foot.

Similar, entering 1’ with a drawing in kilometers it returns 12 units = 12 kilometers.

Regards,
CVH

Admin
Andrew commented on 11.06.2023 13:05

Note that RMathLineEdit is simply not unit aware at all (by design).

1'1" is simply transformed into 1*12 + 1. It's a convenience notation for Inch users. For all other units this notation does not make sense.

CVH commented on 13.06.2023 20:15

That was assumed in the topic:
Meaning that the foot abbreviation triggers 'times 12' in any case.

Now I know where: RMath.cpp Line 416-439.
And advanced: RMath.cpp Line 390-414.

If there was a document it passes first by RDocument::eval and Document::substituteAutoVariables.

The link with a document is within reach.

Regards,
CVH

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing