Draft AnnotationStyleEditor/ru

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.



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
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 values not entered will be filled automatically when this style is selected in the style editor.

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

Because the graphical interface widgets check the units of the input values, many of these values must be saved as strings, rather than floating point numbers.

Strings:

Numbers:

The line color corresponds to the 32-bit integer, from which the individual RGBA values can be extracted.

Boolean: