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

Miscellaneous

mask: Defines the visibilty of the edges of the cutting body:

maski = j1 + 2*j2 + 4*j3 + 8*j4 + 16*j5 + 64*j7

j1: the polygon will create a visible edge upon entry into the body being cut j2: the lengthwise edge of the cutting form will be visible

j3: the polygon will create a visible edge upon exiting the body being cut j4: the bottom edge of the cutting form will be visible

j5: the top edge of the cutting form will be visible

j7: controls the viewpoint dependent visibility of the lengthwise edge

Rectangular Doors/Windows in Curved Walls

When placing doors/windows into curved walls, the sides of the hole cut into the wall can vary according to the picture below.

The hole in the wall on the left is created when the program automatically cuts the hole for the door/window. In this case the sides will be of radial direction. On the right, the hole is cut using the WALLHOLE command in the 3D Script of the door/window object. The object itself needs to be written by taking these factors into consideration.

Another thing to consider is whether the door/window placed into the curved wall is a straight or a curved one.

In the case of a straight door/window, as on the left above, the thickness and width of the object and the thickness of the wall are closely related, since above a certain dimension the object would fall outside of the wall. When using true curved doors/windows, this problem doesn’t occur.

ArchiCAD 11 GDL Reference Guide

261

Miscellaneous

Example:

RESOL 72

ROTX -90

MULY -1

C= 0.12: Z=(360*A)/(2*R_*PI) Y= (360*C)/(2*R_*PI)

A1= 270+Z/2: A2=270-Z/2 GOSUB 1

ADDZ B

MULZ -1

GOSUB 1

DEL 2

ADDZ C

GOSUB 2

MULX -1

GOSUB 2 END

1:

PRISM_ 9, C,

COS(A2)*R_, SIN(A2)*R_+R_, 11, COS(A2+Y)*R_, SIN(A2+Y)*R_+R_, 13, 0, R_, 900,

0, Z-2*Y, 4009,

COS(A1)*R_, SIN(A1)*R_+R_, 11, COS(A1)*(R_-0.1), SIN(A1)*(R_-0.1)+R_, 11, COS(A1-Y)*(R_-0.1), SIN(A1-Y)*(R_-0.1)+R_,13, 0, -(Z-2*Y), 4009,

COS(A2)*(R_-0.1), SIN(A2)*(R_-0.1)+R_, 11 RETURN

2:

PRISM_ 4, B-2*C,

COS(A2)*R_, SIN(A2)*R_+R_, 10, COS(A2+Y)*R_, SIN(A2+Y)*R_+R_, 15,

COS(A2+Y)*(R_-0.1), SIN(A2+Y)*(R_-0.1)+R_,10, COS(A2)*(R_-0.1), SIN(A2)*(R_-0.1)+R_,10

RETURN

Z

Y

X

262

ArchiCAD 11 GDL Reference Guide

Miscellaneous

Non-Rectangular Doors/Windows in Curved Walls

The general guidelines given for rectangular doors/windows in curved walls applies here, too.

Example:

C=0.1: D=0.025

Z=A/2-SQR(2)*C: Y=A/2-SQR(2)*C-D ADDY A/2

WALLHOLE 4, 1,

0, -A/2, 15,

A/2, 0, 15,

0, A/2, 15,

-A/2, 0, 15

PRISM_ 10, 0.1,

0, -A/2, 15,

A/2, 0, 15,

0, A/2, 15,

-A/2, 0, 15,

0, -A/2, -1, 0, -Z, 15, Z, 0, 15,

0, Z, 15,

-Z, 0, 15,

0, -Z, -1 ADDZ 0.02

GOSUB 1 ADDZ 0.03 GOSUB 1 ADDY -Z

ArchiCAD 11 GDL Reference Guide

263