Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
05 ArchiCAD 11 GDL Reference Guide.pdf
Скачиваний:
59
Добавлен:
11.03.2015
Размер:
3.22 Mб
Скачать

Attributes

lengthi: length of the line parts (the real length is spacing * lengthi). Line parts consist of segments and spaces. First line part is a segment, zero length means a dot.

Note: Only simple line types can be defined in the DEFINE LINE_TYPE command, that is, ones consisting only of segments and spaces, there is no possibility to define symbol lines.

Example:

DEFINE LINE_TYPE "line - - ." 1,

6, 0.005, 0.002, 0.001, 0.002, 0.0, 0.002

DEFINE SYMBOL_LINE

DEFINE SYMBOL_LINE name dash, gap, macro_name PARAMETERS [name1 = value1, ... namen = valuen]

Note: This command can contain additional data definition.

See “Additional Data” on page 177 for details.

An extended DEFINE LINE statement, which allows you to include a library part drawing in a line definition. The usage of macro_name and the parameters are the same as for the CALL command.

Parameters:

dash: scale of both line components gap: gap between each component

Styles

DEFINE STYLE

DEFINE STYLE name font_family, size, anchor, face_code

Recommended to be used with the TEXT2 and TEXT commands.

GDL scripts may include style definitions prior to the first reference to that style name. The style defined this way can be used only in the script in which it was defined and its subsequent second generation scripts.

name: name of the style

font_family: name of the used font family (e.g., Garamond)

size: height of the “l” character in milimeters or m in model space

If the defined style is used with the TEXT2 and TEXT commands, size means character heights in millimeters.

If used with PARAGRAPH strings in the RICHTEXT2 and RICHTEXT commands, size meaning millimeters or meters depends on the fixed_height parameter of the TEXTBLOCK definition, while the outline and shadow face_code values and the anchor values are not effective.

ArchiCAD 11 GDL Reference Guide

173

Attributes

anchor: code of the position point in the text

1 2 3

4 5 6

7 8 9

face_code: a combination of the following values:

0normal

1bold

2italic

4

underline

8

outline

16

shadow

Note: The outline and shadow values are effective only on Macintosh platform and up to the 8.1 version of ArchiCAD.

DEFINE STYLE {2}

DEFINE STYLE{2} name font_family, size, face_code

New version of style definition, recommended to be used with PARAGRAPH definitions. name: name of the style

font_family: name of the used font family (e.g., Garamond) size: height of the characters in mm or m in model space face_code: a combination of the following values:

0normal

1bold

2italic

4 underline

32 superscript

64 subscript

128 strikethrouth

174

ArchiCAD 11 GDL Reference Guide