Fix inconsistent properties of Draft annotations?

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
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Fix inconsistent properties of Draft annotations?

Post by Roy_043 »

There are some inconsistenties in the properties of Draft annotations. This is confusing for both end users and programmers. IMO this should be improved. But any change to these properties would mean introducing functions to convert old objects that would have to stay in the Draft code for a long time.

Draft_Text:
DisplayMode: 3D text/2D text ("2D text" means the text faces the camera)
FontName
FontSize
LineColor (not used)
TextColor


Draft_Dimension:
DisplayMode: 2D/3D ("3D" means the text faces the camera)
FontName
FontSize
LineColor (also used for the text)


Draft_Label:
DisplayMode: 3D text/2D text ("2D text" means the text faces the camera)
TextFont
TextSize
LineColor (used for leader, arrow and frame)
TextColor
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Fix inconsistent properties of Draft annotations?

Post by Roy_043 »

For the LineColor of annotations the DefaultShapeLineColor preference is now used. This is questionable IMO.
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Fix inconsistent properties of Draft annotations?

Post by carlopav »

I've never realized It... I'm for fixing It, also if this means adding some backward compatibility code...
follow my experiments on BIM modelling for architecture design
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Fix inconsistent properties of Draft annotations?

Post by Roy_043 »

My suggestion would be to change the DisplayMode options to Screen/World. This avoids the 2D/3D confusion.
See: https://forum.freecadweb.org/viewtopic.php?f=23&t=58335
Post Reply