Text is on wrong side of dimension line

Discussions about the development of the TechDraw workbench
User avatar
babaroga
Posts: 83
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Text is on wrong side of dimension line

Postby babaroga » Thu Mar 28, 2019 8:37 pm

Hello,
Last update with preferred number format was something I was waiting for long time. Thank you!

However I run to another problem. On my test object, dimension text on two dimensions on the right side is on wrong side of dimension line.
Screenshot_20190328_154359.png
Screenshot_20190328_154359.png (118.87 KiB) Viewed 369 times
It seems like if line is angled on more than 135° compared to x axis, dimension number is placed under dimension line. With horizontal and vertical dimensions it seems to work OK.

Similar thing happens with angle dimensioning. Note 15° dimension on right half of model.

Test model is in attachment.

Should I report Bug?

Code: Select all

OS: Manjaro Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16266 (Git)
Build type: Unknown
Branch: master
Hash: ea034215937502bcff3cfd447903977f0656856f
Python version: 3.7.2
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
Attachments
Tech draw test.FCStd
(21.14 KiB) Downloaded 11 times
User avatar
wandererfan
Posts: 3464
Joined: Tue Nov 06, 2012 5:42 pm

Re: Text is on wrong side of dimension line

Postby wandererfan » Fri Mar 29, 2019 1:13 pm

babaroga wrote:
Thu Mar 28, 2019 8:37 pm
Should I report Bug?
Yes, please. When the dimension line is close to 45* the code sometimes gets confused. Not sure what's going on with the angle on the wrong side.
User avatar
wandererfan
Posts: 3464
Joined: Tue Nov 06, 2012 5:42 pm

Re: Text is on wrong side of dimension line

Postby wandererfan » Tue Apr 02, 2019 12:12 pm

babaroga wrote:
Thu Mar 28, 2019 8:37 pm
However I run to another problem. On my test object, dimension text on two dimensions on the right side is on wrong side of dimension line.
This should be fixed by git commit a7e82e8612.
textWrongSideFixed.png
textWrongSideFixed.png (62.01 KiB) Viewed 237 times
User avatar
babaroga
Posts: 83
Joined: Sun Aug 14, 2016 6:52 pm
Location: Banja Luka, Republic of Srpska, Bosnia and Herzegovina

Re: Text is on wrong side of dimension line

Postby babaroga » Tue Apr 02, 2019 4:38 pm

It seems OK now. Thanks!