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

Miscellaneous

Non-Rectangular Doors/Windows in Straight Walls

When working with doors/windows, it is important to know that placing a door/window always cuts a rectangular hole into the wall. The size of this hole is determined by the A and B parameters of the door/window library part. However, when the door/window is not rectangular in elevation, it does not entirely fill the cut rectangular hole. The solution to this is to use the WALLHOLE or WALLNICHE command to define a polygon shape to be cut into the wall where the door/window is placed. There are two solutions for this:

The 3D script has to contain parts that generate those parts of the wall that fill the hole between the door/window body and the edges of the rectangular wall cut. In this case, special attention must be paid to the visibility of the edges of these fillings.

Z

Y

X

With the WALLHOLE or WALLNICHE command, you can define a polygon shape to be cut into the wall where the door/window is placed.

WALLHOLE

WALLHOLE n, status, x1, y1, mask1,

...

xn, yn, maskn [, x, y, z]

n: the number of polygon nodes status:

1:use the attributes of the body for the generated polygons and edges

2:generated cut polygons will be treated as normal polygons

xi, yi: cross-section polygon coordinates maski: similar to the CUTPOLYA statement:

256

ArchiCAD 11 GDL Reference Guide

Miscellaneous

maski = j1 + 2 * j2 + 4 * j3 + 64 * j7

x, y, z: optional direction vector (default is door/window Z axis)

 

 

z

 

 

 

x

y

Z

 

 

j3

n

 

 

 

 

 

 

 

 

 

Y

 

j2

i+1

 

 

 

j1

 

 

1

 

 

 

 

 

 

 

 

 

 

i

 

X

 

 

 

 

 

This command can be used in doors’/windows’ 3D script to cut custom hole(s) in the wall they are placed into. During the 3D generation of the current wall, the 3D script of all its doors/windows is interpreted without model generation to collect the WALLHOLE commands. If they exist, the current wall will be cut using an infinite tube with the polygonal cross-section and direction defined in the script. There can be any number of WALLHOLEs for any door/window, so it is possible to cut more holes for the same door/window, even intersecting ones. If at least one WALLHOLE command is interpreted in a door/window 3D script, no rectangular opening will be generated for that door/window.

Note: The 3D reveal will not be generated automatically for custom holes, you have to generate it from the script.

The hole customized this way will only be visible in 3D, because WALLHOLE commands do not have any effect in 2D. A 2D representation can be scripted if needed (used with “framing in plan” off).

The use of convex polygonal cross-sections is recommended; using concave polygons may result in strange shadings/renderings or cut errors. Convex polygons can be combined to obtain concave ones.

ArchiCAD 11 GDL Reference Guide

257

Miscellaneous

Examples:

RESOL 72

L1=2.7: L2=1.2: H1=2.1: H2=0.3: H3=0.9 R=((L1/2)^2+H2^2)/(2*H2) A=ATN((L1/2)/(R-H2))

WALLHOLE 5,1, -L1/2,H3,15, L1/2,H3,15, L1/2,H1-H2,13, 0,H1-R,915, 0,2*A,4015

WALLHOLE 4,1, L1/2-L2,0,15, L1/2,0,15, L1/2,H3,15, L1/2-L2,H3,15

258

ArchiCAD 11 GDL Reference Guide

Miscellaneous

WALLHOLE

5,1,

15,

-0.45,

0,

0.45,

0,

15,

0.45,

1.5,

15,

0,

1.95,

15,

-0.45,

1.5,

15

PRISM_

12,

0.1,

-0.45,

0,

15,

0.45,

0,

15,

0.45,

1.5,

15,

0,

1.95,

15,

-0.45,

1.5,

15,

-0.45,

0,

-1,

-0.35,

0.1,

15,

0.35,

0.1,

15,

0.35,

1.45,

15,

0,

1.80,

15,

-0.35,

1.44,

15,

-0.35,

0.1,

-1

ArchiCAD 11 GDL Reference Guide

259