Draft AnnotationStyleEditor

Description
The Draft AnnotationStyleEditor command allows you to define styles that affect the visual properties of annotation-like objects, such as those create by the Draft Text, Draft Dimension and Draft Label commands.


 * Several bugs have been fixed and a separate Text color button has been added.



Usage

 * 1) There are several ways to invoke the command:
 * 2) * Press the button.
 * 3) * Select the option from the menu.
 * 4) The  dialog box opens.
 * 5) Select a style from the  dropdown list, or choose  to define a new style.
 * 6) Optionally adjust the properties of the style.
 * 7) Optionally press the  button to rename the style.
 * 8) Optionally press the  button to delete the style.
 * 9) Optionally press the  button to import all styles from a  file. This will overwrite existing styles with the same name.
 * 10) Optionally press the  button to export all styles to a  file.
 * 11) Press the  button to close the dialog box and finish the command.

Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.


 * The information in this paragraph has been updated and reflects FreeCAD version 0.21.

The annotation styles are saved as serialized dictionaries in the attribute of the document. This attribute is inspected by the annotation style editor when it is opened.

Each style that appears in the editor is internally saved with the style name prefixed by ; this will prevent name clashes with other keys that may be saved in, which can hold arbitrary information.

You may define any new style by adding the necessary information to a key that starts with. The corresponding value of this key must be a dictionary serialized using.

The properties not entered will be filled automatically when this style is selected in the style editor and the button is pressed.

In a similar way, any serialized dictionary can be unpacked for edition.

The properties must have the following types:

Strings:

Floats (must be supplied with a decimal point):

Integers:

The and  correspond to a 32-bit integer, from which the individual RGBA values can be extracted. The is an enumerator.

Booleans: