[Bug, SOLVED] Rotated Annotation doesn't maintain rotated appearance

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

[Bug, SOLVED] Rotated Annotation doesn't maintain rotated appearance

Post by vocx »

TechDraw_NewAnnotations have a property called Rotation to set the angle of the baseline of the annotation.

The rotation works when initially creating the annotation. However, if the TechDraw Page is closed (cross on the bottom tab or pressing the space bar to hide the Page), the appearance resets. That is, when opening the TechDraw Page again, the annotation still has the same Rotation in the Properties panel (for example, 90 degrees) but the annotation is shown horizontally as if it had a rotation of 0 degrees.
FreeCad_TechDraw_rotated_text.png
FreeCad_TechDraw_rotated_text.png (64.15 KiB) Viewed 2828 times
To correct the appearance, just enter the same value of rotation (for example, 90) into the property box and hit enter. This can be done for one or two annotations before converting the page to PDF or printing it, but it's cumbersome if you have many annotations, each with a different value of rotation.

OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14979 (Git)
Build type: Release
Branch: master
Hash: 47536dcd3729d3db106af628d62f2bf449e68c49
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Last edited by vocx on Thu Oct 25, 2018 6:33 pm, edited 1 time in total.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
wandererfan
Veteran
Posts: 6317
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: [Bug] Rotated text doesn't maintain rotated appearance

Post by wandererfan »

vocx wrote: Fri Oct 19, 2018 12:30 am The rotation works when initially creating the annotation. However, if the TechDraw Page is closed (cross on the bottom tab or pressing the space bar to hide the Page), the appearance resets. That is, when opening the TechDraw Page again, the annotation still has the same Rotation in the Properties panel (for example, 90 degrees) but the annotation is shown horizontally as if it had a rotation of 0 degrees.
Good catch. I've never noticed this. Please open a ticket for this so it doesn't get forgotten.

Thanks,
wf
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Bug] Rotated text doesn't maintain rotated appearance

Post by Kunda1 »

vocx wrote: Fri Oct 19, 2018 12:30 am
Where did you come from??? So many quality posts with very elaborate breakdowns. Great job. Hope you stick around. :)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: [Bug] Rotated text doesn't maintain rotated appearance

Post by chrisb »

Kunda1 wrote: Fri Oct 19, 2018 3:15 pm
vocx wrote: Fri Oct 19, 2018 12:30 am
Where did you come from??? So many quality posts with very elaborate breakdowns. Great job. Hope you stick around. :)
+1. These contribution are in fact pleasant. Neither error reports nor feature proposals have the demanding attitude of many other newbie requests.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
BC-carpenter
Posts: 10
Joined: Mon Feb 12, 2018 11:55 pm

Re: [Bug] Rotated text doesn't maintain rotated appearance

Post by BC-carpenter »

vocx wrote: Fri Oct 19, 2018 12:30 am TechDraw_NewAnnotations have a property called Rotation to set the angle of the baseline of the annotation.

The rotation works when initially creating the annotation. However, if the TechDraw Page is closed (cross on the bottom tab or pressing the space bar to hide the Page), the appearance resets. That is, when opening the TechDraw Page again, the annotation still has the same Rotation in the Properties panel (for example, 90 degrees) but the annotation is shown horizontally as if it had a rotation of 0 degrees.

To correct the appearance, just enter the same value of rotation (for example, 90) into the property box and hit enter. This can be done for one or two annotations before converting the page to PDF or printing it, but it's cumbersome if you have many annotations, each with a different value of rotation.

[/mono]
I often use rotated annotations for surveyors dimensions aligned to the property lines, or for contour line heights.
What I do is to edit the annotation; increment the rotation and then decrement it back to the correct value, the annotation will display correctly. This can be done quickly for several annotations, but it is only a temporary fix until the file is re-opened.
What works better is to open the model in FreeCAD .17 stable on Windows. I have no idea why this feature works correctly for an older version of FreeCAD but not for the newer releases.
My workaround? I install several releases of FreeCAD and use them according to which features I require at the time.

Has this been reported to the bug tracker?

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13522 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 3bb5ff4e70c0c526f2d9dd69b1004155b2f527f2
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14979 (Git)
Build type: Release
Branch: master
Hash: 47536dcd3729d3db106af628d62f2bf449e68c49
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: [Bug] Rotated text doesn't maintain rotated appearance

Post by vocx »

wandererfan wrote: Fri Oct 19, 2018 2:07 pm
vocx wrote: Fri Oct 19, 2018 12:30 am The rotation works when initially creating the annotation. However, if the TechDraw Page is closed (cross on the bottom tab or pressing the space bar to hide the Page), the appearance resets. That is, when opening the TechDraw Page again, the annotation still has the same Rotation in the Properties panel (for example, 90 degrees) but the annotation is shown horizontally as if it had a rotation of 0 degrees.
Good catch. I've never noticed this. Please open a ticket for this so it doesn't get forgotten.

Thanks,
wf
It's been opened as issue #0003644.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: [Bug] Rotated text doesn't maintain rotated appearance

Post by vocx »

BC-carpenter wrote: Fri Oct 19, 2018 8:35 pm What works better is to open the model in FreeCAD .17 stable on Windows. I have no idea why this feature works correctly for an older version of FreeCAD but not for the newer releases.
Yeah, I think there are a few regressions from stable 0.17 to the 0.18 daily builds but the jump is not so big, as it was from 0.16 to 0.17.
BC-carpenter wrote: Fri Oct 19, 2018 8:35 pm Has this been reported to the bug tracker?
It's been opened as issue #0003644.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: [Bug] Rotated text doesn't maintain rotated appearance

Post by chrisb »

I have different behaviour between 0.17 and 0.18 as well, but in 0.18 it is worse: The annotation never rotates. To make sure I'm doing it right:
- New document
- select TechDraw workbench
- create new default document (A4_LandscapeTD.svg)
- Click Icon "Insert annotation": Default Text appears
- Click Icon "Default Text" in 3D view
- Change rotation

Behaviour in 0.17:
- Text rotates immediately, even before leaving the field, after leaving the frame is updated
- After Save and reopen: Text is still rotated, but the frame is not rotated. Moving the mouse over the frame it rotates as well.

Behaviour in 0.18:
Nothing happens. Text is not rotated, even not after creation.
Opening a 0.17 document with rotated text: text is not rotated.

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.14
Qt version: 5.10.1
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14976 (Git)
Build type: Release
Branch: (HEAD detached at e79a19828)
Hash: e79a19828e2e92269ff96110dfeadaa245ad17c2
Python version: 2.7.15
Qt version: 5.11.2
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: [Bug] Rotated text doesn't maintain rotated appearance

Post by vocx »

chrisb wrote: Sat Oct 20, 2018 7:47 am Behaviour in 0.17:
- Text rotates immediately, even before leaving the field, after leaving the frame is updated
- After Save and reopen: Text is still rotated, but the frame is not rotated. Moving the mouse over the frame it rotates as well.

Behaviour in 0.18:
Nothing happens. Text is not rotated, even not after creation.
Opening a 0.17 document with rotated text: text is not rotated.
The text doesn't rotate at all in 0.18? I find that strange. It definitely rotates in my system, but the appearance restores itself after closing and opening again the page.

Difference in systems are you using Qt5 and OCC 7.2, while I use Qt4 and OCC 7.3.

OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14995 (Git)
Build type: Release
Branch: master
Hash: 7b866816785ac1ca9787b63d4bff12873bb3a593
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: [Bug] Rotated text doesn't maintain rotated appearance

Post by chrisb »

vocx wrote: Sat Oct 20, 2018 10:28 pm Difference in systems are you using Qt5 and OCC 7.2, while I use Qt4 and OCC 7.3.
Both of my systems have the same OCC 7.2, while the Qt versions are slightly different. Let's see if wandererfan can find something which works on all systems.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply