DEFINE STYLE
defines styles for text fonts.
It should be used with TEXT2
and TEXT
. Style definitions prior to the definition of this style may be included in any script; however, styles defined that way can be used solely in those scripts, in which they are defined, and their subsequent second generation-scripts.
Syntax
DEFINE STYLE name font_family, size, anchor, face_code, filling
Parameters
name
(string): name of the style
font_family
(string): name of the font family used, e.g. Arial
size
(decimal): height of the "l" character in mm
with TEXT2
and TEXT
, size means character height in mm
anchor
(integer, 0< anchor
< 10): code for text position
face_code
(integer): not supported, setting is ignored
filling
(integer): can be 0 (= without background filling) or 1 (= with background filling)
Corresponding commands
[set
] STYLE name_string
[set
] STYLE index
All texts generated after a style setting will obtain this style, until the next style is set.
Index is a constant referring to a style stack in the internal data structure; this stack is modified during script analysis and can also be modified from within the program. Any use of the index instead of the style's name is only recommended with the prior use of the INDEX function.
Remarks
If there is no style set in a script, the following default is used:SET STYLE 0
(application font, size 5 mm, anchor = 1, normal face)
Usable since script version 1.1 (Allplan 2012-1).
(C) ALLPLAN GmbH |
Privacy policy |