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

3D Shapes

Example:

90

ROTY

ELBOW

2.5, 180, 1

ADDZ

-4

CYLIND

4, 1

ROTZ

-90

MULZ

-1

ELBOW

5, 180, 1

DEL

1

ADDX

10

CYLIND

4, 1

ADDZ

4

ROTZ

90

ELBOW

2.5, 180,1

PLANAR SHAPES IN 3D

The drawing elements presented in this section can be used in 3D scripts, allowing you to define points, lines, arcs, circles and planar polygons in the three-dimensional space.

HOTSPOT

HOTSPOT x, y, z [, unID [, paramReference, flags] [, displayParam]]

A 3D hotspot in the point (x, y, z).

unID is the unique identifier of the hotspot in the 3D script. It is useful if you have a variable number of hotspots.

paramReference: parameter that can be edited by this hotspot using the graphical hotspot based parameter editing method.

displayParam: parameter to display in the information palette when editing the paramRefrence parameter. Members of arrays can be passed as well.

See “Graphical Editing” on page 133 for using HOTSPOT.

LIN_

LIN_ x1, y1, z1, x2, y2, z2

A line segment between the points P1 (x1,y1,z1) and P2 (x2,y2,z2).

ArchiCAD 11 GDL Reference Guide

59

3D Shapes

RECT

RECT a, b

A rectangle in the x-y plane with sides a and b. Restriction of parameters:

a, b >= 0

POLY

POLY n, x1, y1, ... xn, yn

Y

a

b

X

A polygon with n edges in the x-y plane. The coordinates of nodei are (xi, yi, 0). Restriction of parameters:

n >= 3

POLY_

POLY_ n, x1, y1, s1, ... xn, yn, sn

Similar to the normal POLY statement, but any of the edges can be omitted. If si = 0, the edge starting from the (xi,yi) apex will be omitted. If si = 1, the edge will be shown.

si = -1 is used to define holes directly.

Additional status codes allow you to create segments and arcs in the planar polyline using special constraints.

See “Additional Status Codes” on page 141 for details.

Y

 

 

n

 

 

1

2

3

 

 

X

Y

 

 

 

n

 

1

2

3

 

 

X

Y

 

 

n

 

 

1

2

3

 

 

X

60

ArchiCAD 11 GDL Reference Guide

3D Shapes

Restriction of parameters: n >= 3

PLANE

PLANE n, x1, y1, z1, ... xn, yn, zn

A polygon with n edges on an arbitrary plane. The coordinates of nodei are (xi, yi, zi). The polygon must be planar in order to get a correct shading/rendering result, but the interpreter does not check this condition.

Restriction of parameters: n >= 3

PLANE_

PLANE_ n, x1, y1, z1, s1, ... xn, yn, zn, sn

Similar to the normal PLANE statement, but any of the edges can be omitted as in the POLY_ statement. Additional status codes allow you to create segments and arcs in the planar polyline using special constraints.

See “Additional Status Codes” on page 141.

Restriction of parameters: n >= 3

CIRCLE

CIRCLE r

A circle in the x-y plane with its center at the origin and with a radius of r.

r

ArchiCAD 11 GDL Reference Guide

61