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

Attributes

LINE_PROPERTY

LINE_PROPERTY expr

Defines the property for all subsequently generated lines in the 2D script (RECT2, LINE2, ARC2, CIRCLE2, SPLINE2, SPLINE2A, POLY2, FRAGMENT2commands) until the next LINE_PROPERTY statement. Default value is generic.

expr possible values:

0:all lines are generic lines

1:all lines are inner

2:all lines are contour

[SET] STYLE

[SET] STYLE name_string

[SET] STYLE index

All the texts generated afterwards will use that style until the next SET STYLE statement.

The index is a constant referring to a style stack in the internal data structure (negative indices mean indices in the data structure of materials previously defined in the GDL script). This stack is modified during GDL analysis and can also be modified from within the program. The use of the index instead of the style name is only recommended with the prior use of the IND function.

Default:

SET STYLE 0

(application font, size 5 mm, anchor = 1, normal face) if there is no SET STYLE statement in the script.

Directives Used in 3D Scripts Only

MODEL

MODEL WIRE

MODEL SURFACE

MODEL SOLID

Sets the representation mode in the current script.

MODEL WIRE: only wireframe, no surfaces or volumes. Objects are transparent.

MODEL SURFACE, MODEL SOLID: The generation of the section surfaces is based on the relation of the boundary surfaces, so that both methods generate the same 3D internal data structure. Objects are opaque.

ArchiCAD 11 GDL Reference Guide

155

Attributes

The only distinction can be seen after cutting away a part of the body:

MODEL SURFACE: the inside of bodies will be visible,

MODEL SOLID: new surfaces may appear.

Default:

MODEL SOLID

To illustrate the three modeling methods, consider the following three blocks:

MODEL

WIRE

BLOCK

3,2,1

ADDY

4

MODEL

SURFACE

BLOCK

3,2,1

ADDY

4

MODEL

SOLID

BLOCK

3,2,1

After cutting them with a plane:

[SET] MATERIAL

[SET] MATERIAL name_string [SET] MATERIAL index

All the surfaces generated afterwards will represent that material until the next MATERIAL statement. Surfaces in the

BPRISM_, CPRISM_, FPRISM_, HPRISM_ SPRISM_, CSLAB_, CWALL_, BWALL_, XWALL_, CROOF_, MASS

bodies are exceptions to this rule.

The index is a constant referring to a material stack in the internal data structure (negative indices mean indices in the data structure of mataerials previously defined in the GDL script). This stack is modified during GDL analysis and can also be modified from within the program. The use of the index instead of the material name is only recommended with the prior use of the IND function.

index 0 has a special meaning: surfaces use the color of the current pen and they have a matte appearance.

156

ArchiCAD 11 GDL Reference Guide

Attributes

Default:

MATERIAL 0

if there is no MATERIAL statement in the script.

(For Library parts, default values are read from the Library part’s settings. If the script refers to a non-existing index, MATERIAL 0 becomes the default setting.)

See also IND function description in the “Miscellaneous” > “Requests” on page 242.

SECT_FILL

SECT_FILL fill, fill_background_pen, fill_pen, contour_pen

or

SECT_ATTRS fill, fill_background_pen, fill_pen, contour_pen [, line_type]

Defines the attributes used for the cut part of the 3D elements in the Section/Elevation window and the PROJECT2{3} command (for compatibility reasons previous versions of PROJECT2 are not affected).

fill: fill name or index number

fill_background_pen: fill background pencolor number fill_pen: fill pencolor number

contour_pen: fill contour pencolor number line_type: line type of polygon edges

ArchiCAD 11 GDL Reference Guide

157

Attributes

SHADOW

SHADOW keyword_1[, keyword_2]

Controls the shadow casting of the elements in PhotoRendering and in vectorial shadow casting.

keyword_1:ON, AUTO or OFF keyword_2: ON or OFF

ON: all the subsequent elements will cast shadows in all circumstances.

OFF: none of the subsequent elements will cast shadows in any circumstance. AUTO: shadow casting will be determined automatically.

Setting SHADOW OFF for hidden parts will spare memory space and processing time.

Setting SHADOW ON ensures that even tiny details will cast shadows.

The optional second keyword controls the appearance of shadows on surfaces.

SHADOW keyword_1, OFF disables vectorial shadows on the following surfaces.

SHADOW keyword_1, ON switches back vectorial shadows.

Default:

SHADOW AUTO

SHADOW OFF

BRICK 1, 1, 1

ADDX 2

SHADOW ON

BRICK 1, 1, 2

ADDX 2

SHADOW OFF

BRICK 1, 1, 3

158

ArchiCAD 11 GDL Reference Guide