17 Material list ArchiFrameBlocks.xml
Please note that xml standard reserves charaters <>” into its own markup – general info here and as a rule: Inside xml-attributes like <tag attribute="value"> if the value was <"hello & bye">, you should code it like:
<tag attribute="<"hello & bye;">">This file contains all pre-set material types and their settings. Editing the file is best to start from Materials <materials>/<material>.
To edit raw plank material list, please check this video and for more advanced settings this one.
17.1 Settings <settings>
<archiframe>
<settings>
<misc>
<manufacturer name="xxx"></manufacturer>Manufacturer name affects possible customisations programmed into ArchiFrame.
17.1.1 Printing settings
<print layoutname="Elem drawing <elemid>" frame="0"
masterland="A4 Wall drawing" masterlandxsize="297" masterlandysize="210"
masterport="A4 Wall drawing portrait" masterportxsize="210" masterportysize="297">
<empty_custom name="MyMaster" left="0" top="0" right="100" bottom="0"></empty_custom>
</print>
<printframe dimtitle="Frame ">
…
</printframe>Tag <print> defines master layout names and dimensions for landscape and portrait types. Both can be defined with same dimensions to have always the same orientation.
<empty_custom> defines how much space should be left at each side of the print area. This is useful if there is a stamp in master layout that should not be tampered. The example leaves 100 mm of the right side of the layout untouched. This setting is used if master layout name matches with name-attribute. Name may contain wildcards (name = "*") will match everything. It may also contain attributes:
Xlm-attribute | Description |
valign | Align vertically in the master layout:
|
halign | Align horizontally in the master layout:
|
An example of different vailgn values for a projection with layoutminheight="5",
To bottom, valign="1":
Center, valign="0"
Top. valign="-1":
<printframe>-tag contains XML-settings for an Archicad element.
Xlm-attribute | Description |
layoutname | Default text for print dialog. |
frame | Values:
|
skiplibpart | If given the listed library parts are skipped when creating the layouts, for example, to skip standard element stamp, specify skiplibpart="9FD03D30-6A12-4B0F-AB3A-01410A529E38". Add multiple values using comma as a separator. |
masterland | Name for landscape drawing (width>height). |
...xsize, ...ysize | Paper size in millimetres. |
masterport | Name for portrait drawing (height>width). Both landscape and portrait definitions must exist even if not used. |
dimtitle | Title for single plank dimension drawings. List of plank Ids will be added after the title. |
17.1.2 Plank dimension drawings <projections>
<projections layer="xxx" maxwidth="80.0" margboxes="3.0" margleft="1.0" margtop="1.0" margright="1.0" margbot="1.0" margproj="0.7">
Xlm-attribute | Description |
layer | Layer to place the dimension drawings. If the layer does not exist, it is created. Empty or missing layer name places dimension drawings to the same layer as the original plank. |
maxwidth | Dimension drawing line maximum length in meters. If drawing does not fit to current line, it is placed to the next line above. |
margboxes | Marginal between the dimension drawing frames. |
margxxx | Marginal between the frame and markings inside it. |
margproj | Vertical marginal between dimension drawings from different plank sides. |
Global settings for any projection element in dimension drawings and element projections:
<projbase>
<!--layer>Name, auto created</layer-->
<!--elemparam name="pen">1</elemparam-->
</projbase>It is possible to list any XML-settings for an Archicad element. In this place as exception unknown lines do not cause any message. That allows setting for example object parameters even for dimension lines.
Tag projplank contains settings for the projection. It may be useful to set the line type to solid instead dash & dot etc:
<projplank>
<elemparam name="linetype">1</elemparam>
<objparam name="#useobjlinetype">0</objparam>
</projplank>Dimension settings:
<dimsettings>
<drill midout="0"></drill>
</dimsettings>Xml-tag | Description |
drill | Settings for drill dimensions, attributes:
|
17.1.2.1 Dimension drawings titles <projections>/<text_title>
This section defines the titles and text settings for dimension drawings from different plank sides.
<text_title yoff="0.10">
<settings>
<elemparam name="fontname">Arial</elemparam>
<elemparam name="fontsize">1.2</elemparam>
<elemparam name="fontstyle"> </elemparam>
<elemparam name="pen">11</elemparam>
</settings>
<side1>
<text>TOP</text>
</side1>
<side2>
<text>FRONT</text>
</side2>
<side3>
<text>BOTTOM</text>
</side3>
<side4>
<text>BACK</text>
</side4>
</text_title>Xlm-attribute or tag | Description |
yoff | Vertical marginal between the plank projection and the text. |
<settings> | Settings for the text element, see XML-settings for an Archicad element. |
<sideX> | Text for different surfaces. |
lang | To be used with <text>-tag. If current ArchiFrame language matches with the setting, that tag will be used. Otherwise first <text>-tag is used. |
17.1.2.2 Dimension line settings <projections>/<dim_xxx>
Contains settings for different kinds of dimension lines, see XML-settings for an Archicad element.
Dimension line types are:
Xlm-attribute or tag | Description |
<dim_main> | Main dimension line. |
<dim_mcmain> | Machinings dimension line. |
<dim_angled> | Angled machining. |
<dim_mcdet> | Additional machining dimensions. |
<dim_mcdetangle> | Angled machinings additional dimensions. |
<text_mcdet> | Settings for text details. Additional attributes for this tag:
|
yoff | Dimension line vertical distance to the plank. |
17.1.2.3 Dimension drawings summary text <projections>/<text_summary>
Summary text is placed below the dimension drawings. See XML-settings for an Archicad element.
<text_summary height="1.4" minwidth="3.0">
<settings>
<elemparam name="fontname">Arial</elemparam>
<elemparam name="fontsize">1.5</elemparam>
<elemparam name="fontstyle"></elemparam>
<elemparam name="pen">11</elemparam>
</settings>
<text lang="fin">Mat: [mat]\nLaatuluokka/Quality: [quality]\nNimi/Name: [usage]\nSamanlaisia/Similar: [count]\nTunnukset/IDs: [idlist]</text>
</text_summary>Text may contain parts to be replaced:
Part | Description |
[mat] | Material name and ID, for example 41x195 (XYZ 123). |
[quality] | Quality class from the plank object. |
[usage] | Usage text from the plank object. |
[count] | Number of similar planks. |
[idlist] | IDs of similar planks. |
\n | Line feed. |
17.1.3 Plank usage pre-set list <usagetypes>
This list is put here:
Attribute name is the name for the list and id is the actual value to save. Name and id should be the same unless there is a need to use very short abbreviations.
17.1.4 CLT-boards front and back text presets <clt_bothsides>, <clt_front>, <clt_back>
The presets are put here:
Each setting can set any number of the ArchiFrameBoardPanel-object’s parameters, for example these will set the texts and grain direction arrow types for front and back:
<item name="BVI">
<settings>
<objparam name="markFront">Front: visible</objparam>
<objparam name="markBack">Back: visible</objparam>
<objparam name="iMarkTypeFront">Lines</objparam>
<objparam name="iMarkTypeBack">Lines</objparam>
</settings>
</item>Own definitions should be put to user specific settings/ArchiFrameBlocksChanges.xml, please see related tags from the ArchiFrame Samples/Data_Yours_BASE_XXX_own (default place in Windows C:\ArchiFrame\Samples\Data_Yours_BASE_XXX_own).
17.1.5 Hidden balk joint list <balkhiddenjoints>
This section defines machinings for different hidden balk joints and accessory codes to be used in custom listings.
<balkhiddenjoints>
<balkhiddenjoint name="Hidden balk joint 1" id="HIDDENBALKJOINT1" cutwidth="0.050" cutheight="0.150" cutdepth="0.005" grodepth="0.100" growidth="0.008" drilly1="0.050" drilldist="0.080" drillsize="0.010" drillspace="0.040" drillcount="3">
</balkhiddenjoint>
</balkhiddenjoints>
Xlm-attribute | Description |
name | Joint name. |
id | Beam shoe id for custom listings. |
cutwidth | Shoe back plate width. |
cutheight | Shoe back plate height, shoe is machined into the plank from top surface downwards. |
cutdepth | Show back plate thickness. |
grodepth | Length of the shoe part that actually holds the beam (goes into the beam). |
growidth | Thickness of above. |
drilly1 | First drilling's distance from top surface. |
drilldist | Drilling distance from plank's end. |
drilldist2 | The same if there is another row of drillings. |
drillsize | Drilling diameter. |
drillspace | Distance between the drillings. |
drillcount | Number of drillings. |
17.1.6 Mortise and tenon joint default dimensions <mortisetenon>
<mortisetenon len="0.056" lenrelative="0.5" bordertop="0.02" borderbot="0.005" borderside="0.01" roundingr="0.0225" endgap="0.001" sidegap="0.001" topgap="0.010">
</mortisetenon>Xlm-attribute | Description |
len | Tenon length. |
lenrelative | Overrides len, use tenon length relative to plank width. |
bordertop | Border top. |
borderside | Border sides. |
roundingr | Rounding radius for corners. Affects directly 3D and Hundegger cnc- so that zero means rectangular and any other value will create rounded tenon (rounding radius is defined by the machine). |
endgap | Mortise bottom gap. |
sidegap | Mortise side gap. |
topgap | Mortise top gap. |
17.1.7 Dovetail joint default dimensions <dovetail>
<dovetail len="0.038" bordertop="0.00" borderbot="0.050" bottomwidth="0.06" roundingr="0.0225" endgap="0.000" sidegap="0.000" angle="6" >
</dovetail>Xlm-attribute | Description |
len | Tenon length. |
bordertop | Border top. |
borderbot | Border bottom. |
bottomwidth | Dovetail tenon width at bottom (in pocket the width at plank surface). |
roundingr | Rounding radius, dovetail is always rounded – this affects only the 3D. |
endgap | Pocket bottom gap. |
sidegap | Pocket side gap. |
angle | Opening angle. |
17.1.8 Narrowed balk default dimensions <balkborder>
Narrowed balk is used for example when beam goes through a log wall:
<balkborder bordertop="0.02" borderbot="0.005" borderside="0.01" overtop="0.001" overbot="0.000" overside="0.001" overlen="0.000" >
</balkborder>Xlm-attribute | Description |
bordertop | Top side narrowing. |
borderbot | Bottom side narrowing. |
borderside | Side narrowing. |
overtop | Oversize top. |
overbot | Oversize bottom. |
overside | Oversize sides (to be used to both left and right). |
overleft | If different on the sides. |
overrigh | If different on the sides. |
overlen | Lengthwise oversize. For example if the wall is 200 mm thick and this value is 1 mm, the narrowing will be 201 mm long. |
17.1.9 Intact balk default dimensions <balkcut>
As narrowed balk but no machinings in the balk.
<balkcut overtop="0.01" overbot="0.000" overside="0.001" >
</balkcut>17.1.10 Default settings <plankdefaults>
Plank default settings. When adding new planks these settings are set to the plank. See XML-settings for an Archicad element.
<plankdefaults defaultlayer="Wall drawings.2d" plankminlen="0.01">
<elemparam name="pen">11</elemparam>
<objparam name="iLengthFormat">mm</objparam>
<objparam name="iFontSizeBase">10</objparam>
</plankdefaults>Xlm-attribute | Description |
defaultlayer | Default layer for add & edit tool palette. If the layer is forced, it is given the normal setting. |
plankminlen | Shorter planks are not created and are removed automatically. |
17.1.10 CNC-limitations <cnc-limits>
Xlm-attribute | Description |
gromaxdepth | Groove maximum depth. Groove tool palette uses this value to select groove target side in the plank. The side that does not exceed the maximum is better than the one that exceeds the maximum value. |
nailmindistplank | Nail minimum distance from plank edge. |
nailmindistboard | Nail minimum distance from board edge. |
elemgeo | Value:
|
17.1.11 Dimension tools presets
These definitions affect here:
<dimpresets>
<dimpreset name="Settings from dim tool" name_fin="Asetukset mittatyökalusta">
</dimpreset>
<dimpreset name="C/C text to front" name_fin="C/C teksti alkuun" setmin="0" setmid="1" setmax="0">
<dimlinesettings>
<elemparam name="dimensiontype" >linear</elemparam>
<elemparam name="fontname">Arial</elemparam>
<elemparam name="fontsize">1.5</elemparam>
<elemparam name="fontstyle"></elemparam>
</dimlinesettings>
<text content="C/C" textid="0" anchor="6" marg="0.2">
<elemparam name="pen">11</elemparam>
<elemparam name="fontname">arial</elemparam>
<elemparam name="fontsize">1.5</elemparam>
<elemparam name="fontstyle"></elemparam>
</text>
</dimpreset>
<dimpreset name="Left cumulative" name_fin="Vasen juokseva" setmin="1" setmid="0" setmax="0">
<dimlinesettings>
...
</dimlinesettings>
<text content="LEFT" textid="0" anchor="6" marg="0.2">
...
</text>
</dimpreset>
</dimpresets>
Xlm-attribute | Description |
name | Preset name in the tool. |
setmin | Default value for check box Min. |
setmid | Default value for check box Middle. |
setmax | Default value for check box Max. |
It is possible to attach text element to the dimension line using <text>-tag, for details please see Single dimension line settings <dimline>.
17.1.12 Selection tool automations
These definitions affect here:
<selautomations>
<script name="Show planks" name_fin="Näytä kapulat" openundo="0">
<![CDATA[
ac_environment ("layer", "af *", 1)
ac_environment("rebuild", 1)
]]>
</script>
<script name="Hide planks" name_fin="Piilota kapulat" openundo="0">
<![CDATA[
ac_environment("layer", "af *", 0)
ac_environment("rebuild", 1)
]]>
</script>
</selautomations>The items may contain any kind of Lua scripts. ArchiFrame provides interface to Archicad. Please see Lua scripts.
17.2 Materials <materials>/<material>
Please see the related video here and list of all xml-settings here.
Material list contains pre-set materials. In addition to these the default material list contains freely adjustable block, planed and round materials. Single material is defined with <material>-tag and inside it is possible to give Settings <settings> except <projections>-part. In the example the pen for the material is set to value 22.
<material id="XYZ200" name="Weather A" thickness="0.025" height="0.120" shape="block" maxlen="5.0" m3factor="0" fixlen="0.210" tolist="0">
<settings>
<plankdefaults defaultlayer="Wall drawings.2d" plankminlen="0.01">
<elemparam name="pen">22</elemparam>
</plankdefaults>
</settings>
</material>Xlm-attribute | Description |
id | Material internal ID. Name can change in different languages but the material can still be matched by the same ID. |
name | Material name to be listed for the user. |
thickness | Material thickness, usually the smaller extent is given here. |
height | Material height. |
shape | Material basic shape:
Basic shape must be given even if material profile is provided. |
maxlen | Maximum length. If exceeded the pank displays MAX LEN-remark. |
m3factor | For listings to define volume: material volume = meters*m3factor. |
fixlen | If given, the material length is always fixed. |
tolist | Value 0 removes the material from Add & Edit tool palette. Material can still be used for example for weatherboards. |
density | Material density (kg per dm3), default value is 0.460 which can be used for dry pine. |
kgpermeter | Another option to give weight by kg per meter. |
lbperfoot | Another option to give weight by lb per foot. |
noswap | Do not allow ArchiFrame to make the plank go from left to right or bottom to top. Useful for example for weatherboard pieces having profile. |
excel_quality | Used by summary list listing to produce quality-column. For example: C22, GL20 |
excel_type | Used by summary list listing to produce type-column. For example: Treated, Glue laminated, Massive |
17.2.1 Material profile <material>/<profile>
The default material list contains material XX 204x275 which contains profile.
<material id="XX 204x275" name="XX 204x275" thickness="0.204" height="0.275" shape="block" maxlen="99" m3factor="0.000">
<profile>
<point xym="-0.10200000 0.23900000 15"></point>
<point xym="-0.10200000 0.02000000 15"></point>
…
<point xym="-0.10200000 0.23900000 -1"></point>
</profile>
</material>Profile is picked from fill placed to the origin. Origin defines the position of plank's reference line (bottom middle):
Profile is copied from ArchiFrame notices window and pasted to material's <profile>-tag.
Avoid using arcs that exist in the example as they make the 3D window slower. Arcs can be modelled with lines by changing the status code from 15 to 79. This will produce a 3D profile without unwanted lines.
17.2.2 Material lengthwise profile <material>/<profile_xz>
Lengthwise profile makes it possible to model decorative boards. However, there won't be cnc- for any profile definition. The example below contains fills for plank beginning, multiplied middle and end parts. Please note the point selected for picking is at the begin part's lower left corner:
Lengthwise profile is picked as normal profile and is placed under following tags:
<profile_xz>
<beg>
<point xym="0.00000000 0.27500000 79"></point>
…
<point xym="0.00000000 0.27500000 -1"></point>
</beg>
<mid>
<point xym="2.00000000 0.27500000 15"></point>
…
<point xym="2.00000000 0.27500000 -1"></point>
</mid>
<end>
<point xym="0.00000000 0.27500000 79"></point>
…
<point xym="0.00000000 0.27500000 -1"></point>
</end>
</profile_xz>