GS Door Opening Functions Macro
1. General Description
Door type openings can use this macro to implement default services in connection with the wall (e.g.: the wallhole itself, cavity closure).
2. Parameters
| Name | Type | Default | Remarks |
|---|---|---|---|
| A | Length | 0.9 | X Dimension |
| B | Length | 2 | 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_HoleSideMaterial | Boolean | 0 | 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_Hole_Display_Option | Integer | 3 | Floor Plan Display Option |
| AC_Hole_Position_Angle | Angle | 0 | Hole Position Angle |
| 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 |
| lod2D | Integer | 0 | 2D Detail Level |
| gs_options | Title | --- | Options |
| gs_param_level | String | "High" | Parametric Level |
| gs_door_frame | Title | --- | Door Frame |
| gs_frame_thk | Length | 0.1 | Frame Thickness |
| gs_frame_width | Length | 0.05 | Frame Width |
| gs_door_panel | Title | --- | Door Panel |
| gs_leaf_thk | Length | 0.04 | Leaf 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_open_2D | Angle | 90 | Opening Angle in 2D |
| 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_open_3D | Angle | 0 | Opening Angle in 3D |
| gs_frame_pen | PenColor | 2 | Frame Pen |
| gs_leaf_pen | PenColor | 2 | Leaf Pen |
| gs_door_material | Title | --- | Materials |
| gs_frame_mat | Material | 15 | Frame Material |
| gs_leaf_mat | Material | 15 | Leaf Material |
| ac_details | Title | --- | 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_stDoorThresholdTrim | 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 parameters below.
gs_stParamLevel parameter
| Row | Default value | Description |
|---|---|---|
| 1 | High | Value list item - gs_param_level |
| 1 | Low | Value list item - gs_param_level |
gs_stDoorThresholdTrim parameter
| Row | Default value | Description |
|---|---|---|
| 1 | Off | Value list item - gs_door_trim |
| 2 | Inside | Value list item - gs_door_trim |
| 3 | Outside | Value list item - gs_door_trim |
| 4 | Both Sides | Value list item - gs_door_trim |
| 5 | Off | Value list item - gs_door_treshold |
| 6 | Normal Threshold | Value list item - gs_door_treshold |
| 7 | Extended Threshold | Value list item - gs_door_treshold |
| 8 | Off | Value list item - gs_wcont_line |
| 9 | Inside | Value list item - gs_wcont_line |
| 10 | Outside | Value list item - gs_wcont_line |
| 11 | Both Sides | Value list item - gs_wcont_line |
| 12 | Trim Settings | UI String - tabpage name |
| 12 | Trim Settings | UI String - tabpage name |
| 13 | Trim Position | UI String - static text - gs_door_trim |
| 14 | Trim Oversize | UI String - static text - gs_trim_oversize |
| 15 | Inside | UI String - static text |
| 16 | Outside | UI String - static text |
| 17 | Material Inside | UI String - static text - gs_trim_in_mat |
| 18 | Material Outside | UI String - static text - gs_trim_out_mat |
| 19 | Threshold Settings | UI String - tabpage name |
| 20 | Attributes - Threshold, Trim, Wall | UI String - tabpage name |
| 21 | Threshold Type | UI String - static text - |
| 22 | Threshold Materia | UI String - static text - gs_treshold_mat |
| 23 | Fill | UI String - title |
| 24 | Fill Type | UI String - title |
| 25 | Fill Pen | UI String - title |
| 26 | Background Pen | UI String - title |
| 27 | Plan Symbol | UI String - title |
| 28 | Threshold | UI String - static text |
| 29 | Trim | UI String - static text |
| 30 | Inside | UI String - |
| 31 | Outside | UI String - |
| 32 | Contour Pen | UI String - gs_trim_pen_cont |
| 33 | Wall | UI String - title |
| 34 | Contour Line | UI String - gs_wcont_line |
| 35 | Line Type Inside | UI String - gs_wcont_line_in |
| 36 | Line Type Outside | UI String - gs_wcont_line_out |
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 Door Opening, you have to call this macro passing the following parameters.
! =============================================================================! ========================================================================= ! GS Door Opening Functions ! =============================================================================! ========================================================================= call "GS Door Opening Functions.gsm", parameters all gs_stParamLevel = gs_stParamLevel, gs_stCavityClosure = gs_stCavityClosure, gs_stDoorThresholdTrim = gs_stDoorThresholdTrim
2D Script
In this kind of script the window object 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 Door Opening Functions ! =============================================================================! ========================================================================= call "GS Door Opening Functions.gsm", parameters all lod2D = lod2D, gs_stDoorThresholdTrim = gs_stDoorThresholdTrim, gs_stCavityClosure = gs_stCavityClosure