GS Window Opening Functions Macro
Index
1. General Description
Window type openings can use this macro to implement default services connecting to the wall. E.g.: the wallhole itself, cavity closure.
2. Parameters
Name | Type | Default | Remarks |
---|---|---|---|
A | Length | 1 | X Dimension |
B | Length | 1 | Y Dimension |
ZZYZX | Length | 1 | Z Dimension |
AC_WallContours | Integer | 0 | Wall Contours (0-None,1-Full,2-Side,3-Length) |
AC_Hole_Hotspot_Control | Integer | 3 | Hotspots 0-None,1-2D,2-3D,3-All |
AC_Hole_Display_Option | Integer | 3 | Floor Plan Display Option" |
AC_Hole_Position_Angle | Angle | 0 | Hole Position Angle |
AC_HoleSideMaterial | Boolean | 1 | Hole Has Wall's Side Material |
AC_HoleMaterialCurved | Boolean | 0 | Hole Material's Split is Curved |
AC_show2DHotspotsIn3D | Boolean | 1 | Show 2D Hotspots in 3D |
AC_WallType | Integer | 0 | Wall Type |
AC_WindowInWallContour | Integer | Window in Wall Contour | |
AC_WallContourPolygon | Length | Wall Contour Polygon | |
gs_macro_control_parameters | Title | --- | Macro Control Parameters |
gs_macro_version | Integer | 10 | Macro Version |
gs_IsCurved | Boolean | 0 | Curved Window |
lod2D | Integer | 0 | 2D Detail Level |
gs_options | Title | --- | "Options" |
gs_param_level | String | "High" | Parametric Level |
gs_window_frame | Title | --- | Window Frame |
gs_frame_thk | Length | 0.05 | Frame Thickness |
gs_frame_width | Length | 0.07 | Frame Width |
gs_window_sash | Title | --- | Sash Frame |
gs_sash_thk | Length | 0.05 | Sash Frame Thickness |
gs_sash_width | Length | 0.05 | Sash Frame Width |
gs_glass_thk | Length | 0.02 | Glass Thickness |
gs_turn_plaster | Title | --- | Turn Plaster |
gs_bOverOut | Boolean | 0 | Turn Reference-Side Plaster |
gs_bOverIn | Boolean | 0 | Turn Opposite-Side Plaster |
gs_closureMethod | String | "None" | Cavity Closure |
gs_cavity_side | String | "Both" | Cavity Side |
gs_nTurn | Integer | 1 | Number of Turned Skins |
gs_nTurnDir | String | "Reference Side" | Number from |
gs_bTurnReveal | Boolean | 0 | Turn at Reveal |
gs_nOutsideSkins | Integer | 1 | Number of Outside Skins |
gs_bJoint | Boolean | 1 | Insert Insulation Strip |
gs_thkJoint | Length | 0.025 | Strip Thickness |
gs_penJoint | PenColor | 100 | Strip Contour Pen |
gs_ltJoint | LineType | 1 | Strip Contour Linetype |
gs_fillJoint | FillPattern | 17 | Strip Fill Type |
gs_penJointFg | PenColor | 1 | Strip Fill Pen |
gs_penJointBg | PenColor | 93 | Strip Fill Background Pen |
gs_widthPlug | Length | 0.075 | Profile Width |
gs_penPlug | PenColor | 100 | Profile Contour Pen |
gs_ltPlug | LineType | 1 | Profile Contour Linetype |
gs_fillPlug | FillPattern | 17 | Profile Fill Type |
gs_penPlugFg | PenColor | 1 | Profile Fill Pen |
gs_penPlugBg | PenColor | 93 | Profile Fill Background Pen |
gs_2D_representation | Title | --- | "2D Representation |
gs_pen_2D | PenColor | 3 | Symbol Pen |
gs_wcont_line | String | "Off" | Wall Contour Line |
gs_wcont_line_in | LineType | 4 | Wall Contour Line Type Inside |
gs_wcont_line_out | LineType | 4 | Wall Contour Line Type Outside |
gs_bFills | Boolean | 1 | Use Fills |
gs_wallhole_fill | FillPattern | 65 | Plan Symbol Fill Type |
gs_wallhole_pen_fg | PenColor | 91 | Plan Symbol Fill Pen |
gs_wallhole_pen_bg | PenColor | 91 | Plan Symbol Fill Background Pen |
gs_3D_representation | Title | --- | "3D Representation |
gs_frame_pen | PenColor | 2 | Frame Pen |
gs_sash_pen | PenColor | 2 | Leaf Pen |
gs_glass_pen | PenColor | 2 | Glass Pen |
gs_window_material | Title | --- | "Materials |
gs_frame_mat | Material | 14 | Frame Material |
gs_sash_mat | Material | 15 | Sash Material |
gs_glass_mat | Material | 24 | Glass Material |
ac_details | Title | --- | "AC Details |
ac_left_oversize | Length | 0 | AC Left Opening Oversize |
ac_right_oversize | Length | 0 | AC Right Opening Oversize |
ac_upper_oversize | Length | 0 | AC Upper Opening Oversize |
ac_lower_oversize | Length | 0 | AC Lower Opening Oversize |
ifc_optypestr | String | "Not Defined" | IFC Operation |
ifc_optype | Integer | 0 | IFC Operation |
gs_stParamLevel | String | String Resource | |
gs_stWindowSillTrim | String | String Resource | |
gs_stCavityClosure | String | String Resource |
3. Usage
Localization
The macro's default language is the English, but you can localize it with the following parameters:
gs_stParamLevel parameter.
Row | Default value | Description |
---|---|---|
1 | High | Value list item - gs_param_level |
1 | Low | Value list item - gs_param_level |
gs_stWindowSillTrim parameter.
Row | Default value | Description |
---|---|---|
1 | Off | Value list item - gs_window_trim |
2 | Inside | Value list item - gs_window_trim |
3 | Outside | Value list item - gs_window_trim |
4 | Both Sides | Value list item - gs_window_trim |
5 | Off | Value list item - gs_window_sill |
6 | Inside | Value list item - gs_window_sill |
7 | Outside | Value list item - gs_window_sill |
8 | Both Sides | Value list item - gs_window_sill |
9 | Timber Sill | Value list item - gs_sill_type |
10 | Brick Sill | Value list item - gs_sill_type |
11 | Stone Sill | Value list item - gs_sill_type |
12 | Off | Value list item - gs_wcont_line |
13 | Inside | Value list item - gs_wcont_line |
14 | Outside | Value list item - gs_wcont_line |
15 | Both Sides | Value list item - gs_wcont_line |
16 | Trim Settings | UI String - tabpage name |
17 | General Geometry | UI String - static text (title of the left pane) ! not used by now |
18 | Trim Position | UI String - static text - gs_window_trim |
19 | Trim Oversize | UI String - static text - gs_trim_oversize |
20 | Inside | UI String - static text |
21 | Outside | UI String - static text |
22 | Appearance | UI String - static text (title of the right pane) ! not used by now |
23 | Material Inside | UI String - static text - gs_trim_in_mat |
24 | Material Outside | UI String - static text - gs_trim_out_mat |
25 | Sill and Board Settings | UI String - static text - gs_window_sill |
26 | Sill Position | UI String - static text - gs_window_sill |
27 | Sill Oversize | UI String - static text - gs_sill_oversize |
28 | Sill Type | UI String - static text - gs_sill_type |
29 | Sill | UI String - static text (not used) |
30 | Board | UI String - static text (not used) |
31 | Sill Material | UI String - static text - gs_sill_mat |
32 | Board Material | UI String - static text - gs_board_mat |
33 | Attributes - Sill, Board, Trim, Wall | UI String - tabpage name |
34 | Overhang Left | UI String - gs_sill_ovhg_left |
35 | Overhang Right | UI String - gs_sill_ovhg_right |
36 | Slip in Depth | UI String - gs_sill_slip_in |
37 | Is Curved in Curved Walls | UI String - gs_sill_curved |
38 | Board | UI String - title |
39 | Overhang Left | UI String - gs_board_ovhg_left |
40 | Overhang Right | UI String - gs_board_ovhg_right |
41 | Slip in Depth | UI String - gs_board_slip_in |
42 | Is Curved in Curved Walls | UI String - gs_board_curved |
43 | Fill | UI String - title |
44 | Fill Type | UI String - title |
45 | Fill Pen | UI String - title |
46 | Background Pen | UI String - title |
47 | Plan Symbol | UI String - title |
48 | Sill | |
49 | Board | |
50 | Trim | |
51 | Inside | |
52 | Outside | |
53 | Contour Pen | UI String - gs_trim_pen_cont |
54 | Wall | UI String - title |
55 | Contour Line | UI String - gs_wcont_line |
56 | Line Type Inside | UI String - gs_wcont_line_in |
57 | Line Type Outside | UI String - gs_wcont_line_out |
58 | Casing Out | UI String - General tabpage |
59 | Casing In | UI String - General tabpage |
60 | Sill Out | UI String - General tabpage |
61 | Sill In | UI String - General tabpage |
62 | Ganging | UI String - General tabpage |
gs_stCavityClosure parameter.
Row | Default value | Description |
---|---|---|
1 | None | Value list item - gs_closureMethod |
2 | Traditional | Value list item - gs_closureMethod |
3 | Prefabricated | Value list item - gs_closureMethod |
4 | Reference side | Value list item - gs_nTurnDir |
5 | Opposite side | Value list item - gs_nTurnDir |
6 | Both | Value list item - gs_cavity_side |
7 | Left | Value list item - gs_cavity_side |
8 | Right | Value list item - gs_cavity_side |
9 | Cavity Closure and Custom Reveal | UI String - tabpage name |
10 | Cavity Closure | UI String - static text (title of the upper left pane) |
11 | Closure Method | UI String - gs_closureMethod |
12 | Cavity Side | UI String - static text - gs_cavity_side |
13 | Number of Turned Skins | UI String - gs_nTurn |
14 | Number from | UI String - gs_nTurnDir |
15 | Turn at Reveal | UI String - gs_bTurnReveal |
16 | Insulation Strip | UI String - gs_bJoint |
17 | Thickness | UI String - gs_thkJoint |
18 | Contour Pen | UI String - gs_penJoint and gs_penPlug |
19 | Line Type | UI String - gs_ltJoint and gs_ltPlug |
20 | Fill Type | UI String - gs_fillJoint and gs_fillPlug |
21 | Fill Pen | UI String - gs_penJointFg and gs_penPlugFg |
22 | Fill Back. Pen | UI String - gs_penJointBg and gs_penPlugBg |
23 | Profile | UI String - static text |
24 | Width | UI String - gs_widthPlug |
25 | Turn Plaster | UI String - static text |
26 | Reference-Side | UI String - gs_bOverOut |
27 | Opposite-Side | UI String - gs_bOverIn |
Parameter Script
For implementing the parameter logic of the Window Opening, you have to call this macro passing the following parameters.
! ============================================================================= ! GS Window Opening Functions ! ============================================================================= call "GS Window Opening Functions.gsm", parameters all gs_stParamLevel = gs_stParamLevel, gs_stWindowSillTrim = gs_stWindowSillTrim, gs_stCavityClosure = gs_stCavityClosure
2D Script
In this kind of script the window has to contain the following code lines.
It has to empty the transformation stack before calling this macro (eg. with a del top
command)
! ============================================================================= ! GS Window Opening Functions ! ============================================================================= call "GS Window Opening Functions.gsm", parameters all lod2D = lod2D, gs_stWindowSillTrim = gs_stWindowSillTrim, gs_stCavityClosure = gs_stCavityClosure