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

2D Shapes

x, y: X-Y coordinates of the richtext location

textblock_name: the name of a previously defined TEXTBLOCK

BINARY 2D

FRAGMENT2

FRAGMENT2 fragment_index, use_current_attributes_flag

The fragment with the given index is inserted into the 2D Full View with the current transformations. use_current_attributes_flag: defines whether or not the current attributes will be used

0:the fragment appears with the color, line type and fill type defined for it.

1:the current settings of the script are used instead of the color, line type and fill type of the fragment.

FRAGMENT2

FRAGMENT2 ALL,use_current_attributes_flag

All the fragments are inserted into the 2D Full View with the current transformations. use_current_attributes_flag: defines whether or not the current attributes will be used.

0:the fragments appears with the color, line type and fill type defined for them.

1:the current settings of the script are used instead of the color, line type and fill type of the fragments.

3D PROJECTIONS IN 2D

PROJECT2

PROJECT2 projection_code, angle, method

ArchiCAD 11 GDL Reference Guide

127

2D Shapes

PROJECT2{2}

PROJECT2{2} projection_code, angle,method [,backgroundColor, fillOrigoX, fillOrigoY, filldirection]

Creates a projection of the 3D script in the same library part and adds the generated lines to the 2D parametric symbol. The 2nd version PROJECT2{2}, together with a previous SET FILL command, allows the user to control the fill background, origin and direction of the resulting drawing from the 2D script.

projection_code: the type of projection

3:Top view

4:Side view

6:Frontal axonometry

7:Isometric axonometry

8:Monometric axonometry

9:Dimetric axonometry

-3: Bottom view

-6: Frontal bottom view -7: Isometric bottom view

-8: Monometric bottom view -9: Dimetric bottom view

angle: the azimuth angle set in the 3D Projection Settings dialog box. method: the chosen imaging method

1:wireframe

2:hidden lines (analytic)

3:shading

16: addition modifier, draws vectorial hatches (effective only in hidden line and shaded mode)

32: addition modifier, use current attributes instead of attributes from 3D (effective only in shading mode) 64: addition modifier, local fill orientation (effective only in shading mode)

128: addition modifier: lines are all inner lines (effective only together with 32). Default is generic.

256: addition modifier: lines are all contour lines (effective only together with 32, if 128 is not set). Default is generic. 512: addition modifier: fills are all cut (effective only together with 32). Default is drafting fills.

1024: addition modifier: fills are all cover (effective only together with 32, if 512 is not set). Default is drafting fills. BackgroundColor: background color of the fill

fillOrigoX: X coordinate of the fill origin fillOrigoY: Y coordinate of the fill origin filldirection: direction angle of fill

128

ArchiCAD 11 GDL Reference Guide

2D Shapes

Note: SET FILL is effective for PROJECT2{2}

Example:

Compatibility note: using PROJECT2 with method bit 32 not set and method bit 3 set (shading), the model being cut with CUTPOLYA without status bit 2 set (generating cut polygons) resulting cut polygon attributes can be different. Cut polygons will be generated with attributes defined by the SECT_FILL command in the 3D script.

ArchiCAD 11 GDL Reference Guide

129

2D Shapes

PROJECT2{3}

PROJECT2{3} projection_code, angle, method , parts[, backgroundColor, fillOrigoX, fillOrigoY, filldirection][[,]

PARAMETERS name1=value1 , ... namen=valuen]

Creates a projection of the 3D script in the same library part and adds the generated lines to the 2D parametric symbol. The 2nd version PROJECT2{2}, together with a previous SET FILL command, allows the user to control the fill background, origin and direction of the resulting drawing from the 2D script. The third version, PROJECT2{3}, adds the posibility to define which parts of the projected model are required and to control separately the attributes of the cut and view part, including the line type. You can also generate the projection with actual parameters set in the command.

method: the chosen imaging method

1:wireframe

2:hidden lines (analytic)

3:shading

16: addition modifier, draws vectorial hatches (effective only in hidden line and shaded mode)

32: addition modifier, use current attributes instead of attributes from 3D (effective only in shading mode) . 64: addition modifier, local fill orientation (effective only in shading mode)

128: addition modifier: lines are all inner lines (effective only together with 32). Default is generic.

256: addition modifier: lines are all contour lines (effective only together with 32, if 128 is not set). Default is generic. 512: addition modifier: fills are all cut (effective only together with 32). Default is drafting fills.

1024: addition modifier: fills are all cover (effective only together with 32, if 512 is not set). Default is drafting fills.

2048: addition modifier: modifiers 16, 32, 64, 128, 256, 512, 1024 and fill attribute parameters are effective only for the view part of the projection. By default they are effective for all parts.

4096: addition modifier: modifiers 16, 32, 64, 128, 256, 512, 1024 and fill attribute parameters are effective only for the cut part of the projection. By default they are effective for all parts.

8192: addition modifier: cut fills are slanted

Known limitation: lines of the cut part cannot be treated separately, only all lines together can be set to be inner or contour. parts: defines the parts to generate. The 15 value means all parts.

part = j1 + 2*j2 + 4*j3 + 8*j4

where j1, j2, j3, j4 can be 0 or 1. The j1, j2, j3, j4 numbers represent whether the corresponding parts of the projected model are present (1) or omitted (0):

j1: cut polygons (with default fill attributes defined by SECT_FILL) (effective only in shading mode) j2: cut polygon edges

j3: view polygons

j4: view polygon edges

130

ArchiCAD 11 GDL Reference Guide