Text is on wrong side of dimension line

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
babaroga
Posts: 178
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

Post by babaroga »

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 967 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 25 times
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Text is on wrong side of dimension line

Post by wandererfan »

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
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Text is on wrong side of dimension line

Post by wandererfan »

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 835 times
User avatar
babaroga
Posts: 178
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

Post by babaroga »

It seems OK now. Thanks!
Post Reply