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

3D Shapes

ISECTGROUP

ISECTGROUP (g_expr1, g_expr2)

ISECTLINES

ISECTLINES (g_expr1, g_expr2)

Group operations: addition, substraction, intersection, intersection lines. The return value is a new group, which can be placed using the PLACEGROUP command, stored in a variable or used as a parameter in another group operation. Group operations can be performed between previously defined groups or groups result from any other group operation. g_expr1, g_expr2 are group type expressions. Group type expressions are either group names (string expressions) or group type variables or any combination of these in operations which result in groups.

PLACEGROUP

PLACEGROUP g_expr

Placing a group is the operation in which bodies are actually generated. Cutplanes and transformations are effective, the group expression is evaluated and the resulting bodies are stored in the 3D data structure.

KILLGROUP

KILLGROUP g_expr

Clears the bodies of the specified group from the memory. After a KILLGROUP operation the group becomes empty. Clearing is executed automatically at the end of the interpretation or when returning from macro calls. For performance reasons this command should be used when a group is no longer needed.

112

ArchiCAD 11 GDL Reference Guide

3D Shapes

Example:

GROUP "box"

BRICK 1, 1, 1

ENDGROUP

GROUP "sphere"

ADDZ 1

SPHERE 0.45

DEL 1

ENDGROUP

GROUP "semisphere"

ELLIPS 0.45, 0.45

ENDGROUP

GROUP "brick"

ADD -0.35, -0.35,0

BRICK 0.70, 0.70, 0.35

DEL 1

ENDGROUP

!Substracting the "sphere" from the "box" result_1=SUBGROUP("box","sphere")

!Intersecting the "semisphere" and the "brick" result_2=ISECTGROUP("semisphere","brick")

!Adding the generated result_3=ADDGROUP(result_1,result_2) PLACEGROUP result_3

KILLGROUP "box"

KILLGROUP "sphere"

KILLGROUP "semisphere"

KILLGROUP "brick"

ArchiCAD 11 GDL Reference Guide

113