22 Weatherboards
Weatherboards are separate ArchiFramePlank-objects and they may be used with any door or window. ArchiFrame recognises changes to walls and openings and updates the weatherboards automatically when they are changed. Weatherboards may contain also window jambs:
ArchiFrame produces cut list and even cnc-file for the weatherboards. An example of complicated but fully automatic exterior weatherboarding:
This is done by tailoring the manufacturer specific rules into file ArchiFrameCoveringBoards.xml. Please contact us if you are interested to get your own types into ArchiFrame.
When using ArchiFrame weatherboards the openings' own similar parts should be switched off from the door/window settings.
22.1 Weatherboard tools
- •
Weatherboard type 1/exterior defines in exterior walls the exterior type and the type for the other side of the partition walls.
- •
Distance from wall surface is the distance between the weatherboards and the wall. This can be used to make bigger jambs. Negative value places weatherboards inside the wall.
- •
Automatic update allows ArchiFrame to update the weatherboards whenever the wall or the opening changes.
- •
Setting side 1/exterior defines how to detect the exterior side. If the same types are used on both sides then this setting does not matter.
- •
Floor plan storey is the home storey for the weatherboards. Even if the weatherboards are not visible in the floor plan Archicad will use the plank hotspots. This may cause the mouse click to attach to the wrong invisible hotspot when adding dimension lines. It is recommended to create a new helper storey to place all the weatherboards. With default settings ArchiFrame will place the weatherboards to storey having text constructional storey 1 in its name.
- •
Create weatherboards creates the planks. Selection can be for a single opening, group of openings, wall or multiple walls. ArchiFrame automatically combines together openings which are close enough to each other. This distance is defined in the xml-settings.
Tool palette can also be used to edit existing weatherboards. Selection can contain a plank, opening or one or more walls. Home storey cannot be changed here after creating the weatherboards.
22.2 Weatherboards setting file ArchiFrameCoveringBoards.xml
Because the weatherboards are quite complicated, the rules to create them are not simple. However, everyone who has done GDL-objects should be able to add and edit the rules.
The weatherboards are based on the contour lines made from the frames. For example:
Contour lines are originally oriented counterclockwise. Line between door A and window B is attached to door A's right-hand side because it is longer than the window edge. At the same time window B's horizontal edges are extended to the door's vertical line. Lines between windows B and C are combined to form a single line which is centred between the windows. There will also be a special cover plank defined in the settings.
ArchiFrame detects standard rectangular windows. To form the contour line for an angled opening there is a special Lua script. Some of the angled openings in Archicad standard library are already supported by the script, but other openings and libraries require editing the script. Examples and instructions to define the frame edges can be found from the xml-settings under tag <openings_script>.
Weatherboard definitions include rules to handle frame edges <linegroup>, operations between the planks <operations> and Lua-scripts <scriptplanks> for example to add supporting planks for fascia board.
By default, ArchiFrame creates plank so that the bottom of the plank is outside from the wall.
22.2.1 Variables in expressions
It is possible to use variables instead of fixed values to allow changing materials without editing the rules to place them.
Variable | Description |
jamb_depth | Jamb width, in other words the distance from frame to wall surface. |
mat_thickness | Current material size. |
mat_height | Current material size. |
wall_distance | Distance from wall surface (comes from tool palette). |
cosangle | Absolute value of cover plank angle, horizontal=1.0, vertical=0.0. |
sinangle | Absolute value of cover plank angle, horizontal=0.0, vertical=1.0. |
[parentid] | Can be used to set textual parameter for a plank: Owner opening's ID. For example setting the weatherboard ID: |
22.2.2 Settings <settings>
22.2.2.1 Common settings <plank>
<plank>
<misc minlen="0.050" layer="Cover boards" floor="*constructional storey 1*"></misc>
</plank>Xlm-attribute | Description |
minlen | Minimum length for a plank. Shorter will not be created. |
layer | Forced layer. If not given, the weatherboards are created onto wall's layer. Layer is created and shown automatically but locked layer is not automatically unlocked. |
floor | Default home storey for weatherboards. Name can contain wild cards * and ?. See Weatherboard tools. |
22.2.2.2 Combining adjacent openings <lines>
These rules are used to combine parallell ines next to each other. The combined result line will be in the middle of the two combined ones.
<lines>
<combinelines id="cover_out">
<combine maxdist="0.020" settype="combine20">
<material id="L990" zoff="jamb_depth-mat_thickness*0.5" linexoff="-mat_height*0.5" rotangle="90"></material>
</combine>
<combine maxdist="0.111">
<!-- Use type's default material -->
</combine>
<combine maxdist="0.136">
<material id="L149" zoff="-mat_thickness*0.5" rotangle="90"></material>
</combine>
</combinelines>
<!-- The same for inner cover planks -->
<combinelines id="cover_in">
<combine maxdist="0.020" settype="combine20">
<material id="L989" zoff="jamb_depth-mat_thickness*0.5" linexoff="-mat_height*0.5" rotangle="90"></material>
</combine>
<combine maxdist="0.111">
<!-- Use type's default material -->
</combine>
<combine maxdist="0.136">
<material id="L124" zoff="-mat_thickness*0.5" rotangle="90"></material>
</combine>
</combinelines>
</lines>
Defines rules for combining edges and special cover planks for narrow, normal and wide gap. In the example, the narrow covering plank is used up to 20 mm gap, weatherboard material up to 111 mm and special wide material from 111 to 136 mm gap. Material settings are given as in element module, see Material settings <material>.
<combinelines id="cover_out">
Gives the settings ID "cover_out" that is used to refer to these settings in many following weatherboard type definitions.
<combine maxdist="0.020" settype="combine20">
<material id="L990" zoff="jamb_depth-mat_thickness*0.5" linexoff="-mat_height*0.5" rotangle="90"></material>
</combine>Xlm-attribute | Description |
maxdist | Maximum distance for edges to be combined. |
settype | Gives the edge a geometry ID that will be used instead of ID coming from geometry rules. Also defines that the piece is narrow type which will not get jambs. |
notnarrow | Used with settype=”xxx” to indicate that the piece is not narrow one but normal piece getting jambs: notnarrow="1" |
skipdifflen | If given skipdifflen="1" the combine rule is not used if related lines have different lengths. |
horizontal vertical angled | With these attributes it is possible to apply the current rule only if the line’s orientation matches. For example, to limit to horizontal lines only: <combine maxdist="0.030" settype="combined_horizontal" horizontal="1" vertical="0" angled="0"> Default value is 1 not limiting the rule. |
The main <combinelines>-tag must contain the widest combining rule to be used in different <linegroup>-tags. There the maximum width to combine can be reduced but not the other way round.
Weatherboard Lua-script has these globals set by ArchiFrame:
Variable | Description |
gJamb | Distance from wall surface to the window frame. |
22.2.2.3 Default settings for new plank <newplank>
See XML-settings for an Archicad element.
22.2.3 Weatherboard types <covertypes> / <covertype>
In this part we will go through weatherboard type Decorative exterior. For example:
<covertype id="xxx_tradisjonell_10" name=" Tradisjonell YV 1.0" idstr="WB-#parentid#-01" oversize="0">
Xlm-attribute | Description |
id | Must be present – the internal ID of the weatherboard type |
name | The name visible to the user |
idstr | This is given if weatherboards should have unique ID. ArchiFrame will use the last part as changing part. Possible replaced strings inside idstr: #parentid” ID of the related door or window |
oversize | With the default value 0 the weatherboards are anchored to the window frame: Value 1 anchors to the full opening edges including the oversizes above: |
22.2.3.1 Settings for the type <settings>
<settings>
<newplank>
</newplank>
<combinelines ref="cover_out">
</combinelines>
</settings><newplank>-tag is used to override settings given at the beginning of the file. Tag <combinelines ref = "cover_out"> refers to settings defined earlier.
22.2.3.2 Weatherboard group <create>/<linegroup>
The <linegroup> defines handling for frame edges. Edges will get geometry ID based on the position:
Letter | Geometry ID |
A | vertical, middle ones verticalmid |
B | horizontalbot |
C | horizontal |
D | horizontaltop |
E | inclinedbot |
F | inclined |
G | inclinedtop |
In addition to these, the geometry ID can come from Combining adjacent openings <lines>-section, for example <combine maxdist = "0.020" settype = "combine20"> gives geometry ID combine20.
<linegroup>-tag may contain attribute type = "jamb". In this case, the definitions are for jambs and the operations will change:
- •
Frame edges will not be combined but instead every adjacent frame will get the jambs.
- •
Jamb is created only if there is a weatherboard on top of it or if the weatherboard type defines only jambs (the only <linegroup>-rule is for jambs).
Single <combinelines>-definition can be placed inside the <linegroup> to override the main combining rules. Please note that the main combine-rule decided whether the openings are combined or not. For example, to set special piece to middle of the openings:
<linegroup>
<!-- Override for this layer: 014 if distance of the frames < 103 mm -->
<combinelines>
<combine maxdist="0.1031" extendtop="-0.200" settype="verticalmid_handled">
<material id="04.617.014" zoff="mat_height" rotangle="180"></material>
</combine>
</combinelines>
<planks group="vertical" type="vertical" lineoff="-0.021" extendbot="0.056" extendtop="0.093" extendt="0">
<material id="04.617.013" zoff="mat_thickness*0.5" rotangle="90"></material>
</planks>
<planks group="verticalmid" type="verticalmid" lineoff="-0.021" extendbot="0.056" extendtop="0.093" extendt="0">
<material id="04.617.013" zoff="mat_thickness*0.5" rotangle="90"></material>
</planks>
<planks group="verticalmid_handled" type="verticalmid_handled">
<material>Material set in combinelines-definition, must have material tag here too</material>
</planks>22.2.3.3 Weatherboards group planks <create>/<linegroup>/<planks>
<linegroup> contains <planks>-tags that define the actual planks.
<planks door="0" group="vertical" type="vertical*" lineoff="-0.010" extendtop="0.120" extendbot="0.195" extendt="0">
<material id="block" thickness="0.022" height="0.120" zoff="-mat_thickness*0.5" rotangle="90">
<objparam name="iUsageId">VUORIL-LEV</objparam>
<objparam name="#id">VLLEV-[parentid]</objparam>
</material>
<script>
</script>
</planks><planks>-tag may contain attributes:
Xlm-attribute | Description |
door="0/1" | Will this <planks>-tag be handled with doors. Default is one, will be handled. |
window="0/1" | As previous but for windows. |
group="name" | Group name for the planks to be used in later <operations>-rules that adjusts the planks together. |
type="name" | The kind of lines which will be handled here. Name may contain wild cards, for example, horizontal*. Different values can be given separated with vertical bar, for example, horizontaltop|horizontal|inclined*. |
lineoff="meters" | Distance to move the edge right/away from the opening. Negative moves inwards. For example, if the weatherboard should cover 10 mm of the frame, the value is -0.010. |
zoff="expression" | Moves the plank’s reference line (middle bottom) given distance in meters into the wall, negative outside from the wall. Please see variables in expressions. |
extendtop="m" | How much the edge is extended at upper end. |
extendbot="m" | How much the edge is extended at lower end. |
extendt="0" | Can be used in conjuction with extendtop and extendbot: If edge ends to middle of another line (T-joint), it will not be extended. |
extend="m" | How much the edge is extended from both ends. |
extendfree="m" | Extend only if the end of the edge is not inside the opening and does not end at the middle of the other edge (T-joint). Corner is extended. |
sideout="2" | Please consider using the next item sideout_opening for new weatherboards. Side to be outside from the wall 1-4 (1=top, 2=front, 3=bottom, 4=back). Will not rotate the plank, just swap its direction if give side has more the 90-degree angle to the reference. Useful with profile pieces to get the orientation right. This must be given in the child <material>-tag, for example: <planks group="top_drip" type="horizontaltop|inclinedtop" lineoff="0.026" extend="0"> <material id="VL 42x60" zoff="-mat_thickness*0.5" rotangle="90" noswap="1" sideout="2"></material> </planks> |
sideout_opening="2" | As previous but defines which side of the plank should point outside the current edge (to the right from the counterclockwise opening contour line). This must be given in the child <material>-tag, for example: |
<planks>-tag has <material>-tag that defines the material type. If <material>-tag is missing, no plank will be created for the edge, but the <plank>-definition may be necessary to adjust other edges.
Material settings are given as in element module, see Material settings <material>. In addition, it is possible to specify XML-settings for an Archicad element. Also, with weatherboards it is possible to give attribute create="0" for example to join lines between openings but not to create the plank:
<combine maxdist="0.1461" extendtop="-0.200" settype="verticalmid_handled">
<material id="04.401.015" zoff="-mat_thickness*0.5" linexoff="-mat_height*0.5" rotangle="90" create="0"></material>
</combine>
Group may also have Lua-script. An example of the script is included in weatherboard type Decorative exterior. The script has these general global variables:
- •
gnDirInside Is the watching direction to the left (-1) or to the right (1) of the current x-axis.
In addition, the script has a global variable gPlank having following fields (note that changing these fields will not change the plank - the plank must be edited with ac_objectset()-function):
Field | Description |
guid | Ptr of the item |
bDoor | true = door edge, false = window edge. |
x1,y1,x2,y2 | Edge coordinates in local 2D-co-ordinate system. |
z1, z2 | If given, the distance in the watching plane’s direction z origin being on wall’s surface and always going into the wall. |
gx1,gy1,gz1, | Plank coordinates in global model coordinates. |
len | Plank length. |
begConn | Begin joint type:
|
endConn | End joint type. |
bExtR | true = exterior to right, false = plank direction is swapped and exterior to left. |
group | Edge geometry ID name, for example "vertical". |
sideout | Only when creating planks with script: Tells which surface 1-6 of the plank is pointing most outside from the wall. In scriptplanks-section values 11-16 may be used. Those values make the plank’s direction to be swapped without swapping the machinings. ArchiFrame will swap the plank direction to achieve this. Useful when there is a profile for the plank which must be oriented correctly. |
sideup | As before to be used from a script only. Only values 1-6 can be used. Defines which side of the plank is pointing upwards. |
noswap | If given with value 1, ArchiFrame will not swap the plank’s direction to make it go from bottom to top and/or left to right. |
xmlsettings | Normal xml-settings to be applied after base xml-settings. |
Script can set global variable gnSideOut to value 1…6 which defines which side of the specified plank must be outside from the wall (see About the planks). This is required to allow placing planks with asymmetric profile. In addition the script can set globals gtblCutBeg and gtblCutEnd to define the cutting plane for the plank. These variables may contain fields:
Field | Description |
x,y,z | 3D-coordinate on the plane. |
dx,dy,dz | Plane normal vector. |
Example code using z1 and z2:
-- Add pieces to beg and end in the watching direction
local tblSide
tblSide={}
tblSide.group=groupName .. "_side"
tblSide.x1=tblNew.x1
tblSide.y1=tblNew.y1
tblSide.z1=-zoff-0.028
tblSide.x2=tblNew.x1
tblSide.y2=tblNew.y1
tblSide.z2=tblSide.z1-0.040-0.028
tblSide.rotangle=90 * gnDirInside
tblSide.sideup=4
tblSide.id=matId
tblSide.xmlsettings=tblNew.xmlsettings
gnPlankCount=gnPlankCount+1
gtblCreate[gnPlankCount]=tblSide
-- End
tblSide={}
tblSide.group=groupName .. "_side"
tblSide.x1=tblNew.x2
tblSide.y1=tblNew.y2
tblSide.z1=-zoff-0.028
tblSide.x2=tblNew.x2
tblSide.y2=tblNew.y2
tblSide.z2=tblSide.z1-0.040-0.028
--tblSide.z1,tblSide.z2 = tblSide.z2,tblSide.z1
tblSide.rotangle=-90 * gnDirInside
tblSide.sideup=4
tblSide.id=matId
tblSide.xmlsettings=tblNew.xmlsettings
gnPlankCount=gnPlankCount+1
gtblCreate[gnPlankCount]=tblSide22.2.3.4 Operations between the planks <create>/<operations>
As in element module, see Operations between the planks <operations>. With weatherboards it is possible to give additional attributes targetex and operatorex, which refer to weatherboard place:
<jointo target="vertical*" targetex="verticalmid" operator="inclined*">22.2.3.5 Script defined planks <create>/<scriptplanks>
First there is a definition of the planks to be handled:
<findgroup resulttbl="gtblTop">
<base name="topbox"></base >
</findgroup>
<findcross resulttbl="gtblWeather">
<base name="weatherboard"></base >
<cross name="vertical*" maxdist="0.150" linepos="mid"></cross>
</findcross>This example creates global Lua-variables gtblTop and gtblWeather. Table gtblTop will contain planks with matching group = "topbox"–definition. <findcross> will identify all the planks (weatherboard) intersecting with the vertical planks (vertical*). <base>- and <cross>-tags may have attributes:
Xlm-attribute | Description |
name = "xxx" | Identifies every plank that has matching group name <planks group = "xxx"…>. |
maxdist = "m" | How much current line is extended when checking its intersection with other lines. |
linepos = "mid" | Use middle lines instead of plank reference lines. |
Every plank has same fields as in the plank specific script, see Weatherboards group planks <create>/<linegroup>/<planks>. However, fields’ begConn and endConn are always zero here. There is also the field tblCross that contains all crossing planks. It contains fields:
Field | Description |
x,y | Intersection point. |
tblPlankx | Information about crossing plank (contains all the same fields as the base plank). |