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

2D Shapes

POLY2_B{3}

POLY2_B{3} n, frame_fill, fill_pen, fill_background_pen, fillOrigoX, fillOrigoY,

mxx, mxy, myx, myy, x1, y1, s1, ..., xn, yn, sn

Advanced version of the POLY2_ command, where the orientation of the fill can be defined using a matrix. frame_fill = j1 + 2*j2 + 4*j3 + 8*j4 + 16*j5 + 32*j6 + 64*j7 +128*j8 where j1, j2, j3, j4, j5, j6, j7, j8 can be 0 or 1.

j1-j7: similar as for previous POLY2_ commands j8 (128): use sloped fill

mxx, mxy, myx, myy: if j8 is set, this matrix defines the orientation of the fill

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.

ARC2

ARC2 x, y, r, alpha, beta

An arc with its centerpoint at (x, y) from the angle alpha to beta, with a radius of r.

Alpha and beta are in degrees.

Y

beta

r

alpha

(x, y)

X

CIRCLE2

CIRCLE2 x, y, r

A circle with its center at (x, y), with a radius of r.

ArchiCAD 11 GDL Reference Guide

121

2D Shapes

r

Y

(x, y)

X

122

ArchiCAD 11 GDL Reference Guide

2D Shapes

SPLINE2

SPLINE2 n, status, x1, y1, angle1, …, xn, yn, anglen

 

anglei

 

i

1

(xi,yi )

Y

n

 

X

Restriction: n >= 2

Spline, with n control points. The tangent of the spline in the control point (xi, yi) is defined by anglei, the angle with the x axis in degrees.

Status values:

0:default

1:closed spline; the last and first nodes of the spline will become connected, thus closing the spline.

2:automatically smoothed spline; the angle parameter value of the nodes between the first and the last node is not used when generating the spline. An internal autosmoothing algorithm is used.

Examples:

 

SPLINE2 5, 2,

60,

0, 0,

1, 2,

30,

1.5, 1.5, -30,

3, 4,

45,

4, 3, -45

ArchiCAD 11 GDL Reference Guide

123

2D Shapes

n = 5

 

 

FOR I = 1 TO n

 

 

SPLINE2 4, 0,

135.0,

0.0,

2.0,

-1.0, 1.8, 240.0,

-1.0, 1.0, 290.0,

0.0,

0.0,

45.0

MUL2

-1.0, 1.0

 

SPLINE2 4, 0,

135.0,

 

0.0,

2.0,

 

-1.0, 1.8, 240.0,

 

-1.0, 1.0, 290.0,

DEL 1

0.0,

0.0,

45.0

SPLINE2 4, 0,

100.0,

 

0.0,

2.0,

 

0.0,

2.5,

0.0,

 

0.0,

2.4,

270.0,

 

0.0,

2.0,

270.0

ADD2 2.5, 0

 

 

NEXT I

SPLINE2A

SPLINE2A n, status, x1, y1, angle1, length_previous1, length_next1,

...

xn, yn, anglen, length_previousn, length_nextn

124

ArchiCAD 11 GDL Reference Guide