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

2D SHAPES

This chapter presents the commands used for generating shapes in 2D from simple forms such as lines and arcs to complex polygons and splines, and the definition of text elements in 2D. It also covers the way binary data is handled in 2D and the projection of the shape created by a 3D script into the 2D view, thereby ensuring coherence between the 3D and 2D appearance of objects. Further commands allow users to place graphic elements into element lists created for calculations.

DRAWING ELEMENTS

HOTSPOT2

HOTSPOT2 x, y [, unID [, paramReference, flags][, displayParam]]

Y

unID is the unique identifier of the hotspot in the 2D Script. 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.

(x,

 

y)

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 information on using HOTSPOT2.

X

LINE2

LINE2 x1, y1, x2, y2

Line definition between two points.

(x2, y2)

Y

(x1, y1)

X

ArchiCAD 11 GDL Reference Guide

117

2D Shapes

RECT2

RECT2 x1, y1, x2, y2

Rectangle definition by two nodes.

(x2, y2)

Y

(x1, y1)

X

POLY2

POLY2 n, frame_fill, x1, y1, ... xn, yn

An open or closed polygon with n nodes.

Y

Restriction of parameters: n >= 2

frame_fill = j1 + 2*j2 + 4*j3 where j1, j2, j3 can be 0 or 1.

j1 (1): contour only

j2 (2): fill only

j3 (4): close an open polygon

n

2

1

X

118

ArchiCAD 11 GDL Reference Guide

2D Shapes

POLY2_

POLY2_ n, frame_fill, x1, y1, s1, ... xn, yn, sn

Y

Similar to the normal POLY2 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 vertex should be shown. si = -1 is used to define holes directly. You can also define arcs and segments in the polyline using additional status code values.

Restriction of parameters: n >= 2

frame_fill = j1 + 2*j2 + 4*j3 + 8*j4 + 32*j6 + 64*j7 where j1, j2, j3 can be 0 or 1.

j1 (1): contour only

j2 (2): fill only

j3 (4): close an open polygon

j4 (8): local fill orientation

j6: fill is cut fill (default is drafting fill)

j7: fill is cover fill (only if j6 = 0, default is drafting fill)

Status values:

s = j1 + 16*j5 + 32*j6 where j1, j5, j6 can be 0 or 1. j1 (1): next segment is visible

j5 (16): next segment is inner line (if 0, generic line)

j6 (32): next segment is contour line (effective only if j5 is not set) -1: end of a contour

Default line property for POLY2_ lines is 0 (generic line), LINE_PROPERTY statement has no effect on POLY2_ edges. 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.

POLY2_A

POLY2_A n, frame_fill, fill_pen, x1, y1, s1, ..., xn, yn, sn

n

2

1

X

ArchiCAD 11 GDL Reference Guide

119

2D Shapes

POLY2_B

POLY2_B n, frame_fill, fill_pen, fill_background_pen,

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

Advanced versions of the POLY2_ command, with additional parameters: the fill pen and the fill background pen. All other parameters are similar to those described at the POLY2_ 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 for details.

POLY2_B{2}

POLY2_B{2} n, frame_fill, fill_pen, fill_background_pen, fillOrigoX, fillOrigoY, fillAngle,

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

Advanced version of the POLY2_B command where the fill pen, background pen, origin and direction can be defined. frame_fill = j1 + 2*j2 + 4*j3 + 8*j4 + 16*j5 + 32*j6 +64*j7

where j1, j2, j3, j4 j5, j6, j7 can be 0 or 1. j1 (1): contour only

j2 (2): fill only

j3 (4): close an open polygon

j4 (8): local fill orientation

j5 (16): global fill origin (effective only if j4 is set)

j6 (32): fill in cut category (distinctive with j7, drafting category if none is set) j7 (64): fill in cover category (distinctive with j6, drafting category if none is set)

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.

120

ArchiCAD 11 GDL Reference Guide