Draft: Can't remember the Font change of Annotation styles

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
johnwang
Veteran
Posts: 1345
Joined: Sun Jan 27, 2019 12:41 am

Draft: Can't remember the Font change of Annotation styles

Post by johnwang »

Hi,

I changed the Font in the Annotation styles and closed the window. Then open it again, the font is always 'MS Shell Dlg 2'.

Regards,

John

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21937 (Git)
Build type: Release
Branch: master
Hash: 0de5a290113800dc5779a76d7e216bd882e0ed1e
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: Draft: Can't remember the Font change of Annotation styles

Post by Roy_043 »

Select 'Add new...' from the Style name dropdown list and enter a name for the style first.
User avatar
johnwang
Veteran
Posts: 1345
Joined: Sun Jan 27, 2019 12:41 am

Re: Draft: Can't remember the Font change of Annotation styles

Post by johnwang »

Roy_043 wrote: Sat Nov 28, 2020 11:08 am Select 'Add new...' from the Style name dropdown list and enter a name for the style first.
When you restart FC, the new style is lost.

And every time you enter that windows, It always choose the unnamed style. Not the one you chose last time.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: Draft: Can't remember the Font change of Annotation styles

Post by Roy_043 »

AFAIK the data is stored in the document. I also notice things that seem strange, but I'll have to study this feature better first.
User avatar
johnwang
Veteran
Posts: 1345
Joined: Sun Jan 27, 2019 12:41 am

Re: Draft: Can't remember the Font change of Annotation styles

Post by johnwang »

The message show 'unset', quite strange.
anno.jpg
anno.jpg (25.49 KiB) Viewed 395 times
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
Roy_043
Veteran
Posts: 8456
Joined: Thu Dec 27, 2018 12:28 pm

Re: Draft: Can't remember the Font change of Annotation styles

Post by Roy_043 »

Yes I have noticed that as well.

When you apply an AnnotationStyle to a Draft_Text there is an error:
File "D:\BKG_Tmp\FreeCAD_0.19_Last_Conda\Mod\Draft\draftviewproviders\view_text.py", line 177, in onChanged
super(ViewProviderText, self).onChanged(vobj, prop)
<class 'SystemError'>: <class 'super'> returned a result with an error set


And if you then change the AnnotationStyle there is another (the same?) error and the Draft_Text loses its anno style.
File "D:\BKG_Tmp\FreeCAD_0.19_Last_Conda\Mod\Draft\draftviewproviders\view_text.py", line 177, in onChanged
super(ViewProviderText, self).onChanged(vobj, prop)
<class 'SystemError'>: <class 'super'> returned a result with an error set


Code: Select all

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23074 (Git)
Build type: Release
Branch: master
Hash: 74b866ed3022fd1452c534dae31a721bcc668f2f
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Dutch/Netherlands (nl_NL)
User avatar
yorik
Founder
Posts: 13642
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Draft: Can't remember the Font change of Annotation styles

Post by yorik »

Indeed Annotation styles are saved by document. We should actually offer a kind of "save/restore" mechanism...

Will check on the error above too
Post Reply