Back to top

TSL | hsbStacking tsl

This document will explain how to use the hsbStacking / truck loading tsl's. 
This is done by using an example project.
The workflow of how this example project was created is described in this document.

Neccesary tsls

The following tsl's are needed to use the hsbStacking application.

Tsl name Explanation
f_Item This tsl will make individual Items of each Element you want to stack.
f_grid This tsl
f_Layer This tsl
f_Statistics This tsl
f_Tag This tsl puts Tag’s on an element.
f_Truck This tsl places a truck.
f_Stacking.xml This file is situated in your hsbCompany (C:\\hsbCompany\\TSL\\Settings), if you don’t have a Settings folder create one.

Step 1: Import a Truck

A truck can be placed by inserting the f_Truck tsl.
After inserting a dialog will pop up.

In the geometry properties you can specify the size of the truck.

Name - property will define the name of the truck that will be visible in the drawing.
Type - property will dine the way of stacking on the truck. Items can be stacked horizontal or vertical.
Design - property will specify the type of truck that will be used to transport the items.

After selecting OK you can pick an insertion point in Model space for the tsl and it will visualize the truck and automatically place 1 instance of the f_Grid tsl.

Step 2: Make Items

The items that will be nested on the truck will be tsl’s called f_Item.
The item tsl’s are a visual representation of the model item (Element, beam, clt, sip, etc.) you want to stack on the truck.
Items can be created by inserting the f_Item tsl in the drawing.

Allowed Types - property you will be able to select witch objects you can select for Item creation.
Display set - property will allow you to assign a display set to the Item, the display set can be configured through the f_settings.xml file (hsbCompany\TSL\Settings). 

After selecting OK in the dialog you can select the model entities from which you want to create stackable items.
After selecting you then specify an insertion point where the items will be placed.

Item Settings

You can specify a name, a detail level, a dimstyle, a textheight, a colour and tags:

With the override property, you can specify your own tag, this can also be done afterwards by running the custom trigger Add override on the f_Item tsl. It will also give you a list of available tags in the command window:

Step 4: Make a new Layer

On each instance of the f_Truck-Grid tsl a layer with multiple items will be created.
You can move the items to the desired location on the truck grid or nest them with a nester by inserting the f-Layer tsl.
In order to add the positioned items on a layer, select the truck grid (Right cliclk) and use the Add layer trigger in the custom menu or run the f_Layer tsl:

After selecting the items and specifying the bedding height, a layer is created (this is a horizontal example):

This can be done for multiple layers, after adding a layer, a new truck grid row is automatically created, with a visualisation of its previous surfaces.
This visualisation can be set up in the xml settings file. With the custom triggers, you can add or remove items from a layer.

The f_Truck-Grid tsl has a few custom actions:

With the trigger Show interferences -  in the custom menu of the truck grid tsl you can show or hide interferences for items in a layer.

With the Show contact faces - you can show or hide the visualisation of the contact faces of the previous surfaces

With the Hide addition row -  you can show or hide the last truck grid row that has been created automatically

With the Add Bedding Grid -  you can add a grid for the beddings, you must specify the number of grids, from 4 to 14, you can also specify the edge offset after adding the tsl.
This will add a bedding grid on the rows of the truck grid:

With the load and export settings - you can load or export settings from or to the f_settings.xml file (hsbCompany\TSL\Settings).

Settings

A large set of parameters of the stacking is stored in a configuration file.
One can create multiple configurations and load it on demand.
A base configuration is provided after the first creation of a truck.
Exporting and loading is done via a truck instance, in the custom menu there is a “load settings” and an “export settings” trigger.
In order to load the settings specify the index of the file (if there is only 1 file, the index will be 0)The file is stored in <company>\TSL\settings\ and named f_Stacking.xml.
Additional configurations must follow the naming convention f_Stacking<NAMEAPPENDIX>.xml, where <NAMEAPPENDIX> can be replaced by any unique string.

The settings are structured into entries regarding the truck-, layer-, and the item-instance.

Truck Settings

The settings of the truck are structured into the following entries.

Type Name Value Function
lst Design[] A list of parameters the appearance of a set surface qualities
lst VerticalType A list of parameters Parameters of the appearance of vertical stackings
lst LayerContact A list of parameters a set of selection sets which are provided during insert
lst LayerInterference A list of parameters a named set of tags which will be shown on the item
lst LayerShadow
lst HeadBoard
lst Stancion[]
lst SequentialColor[]
lst BeddingGrid
lst Layout[]
lst ExporterGroup[] A list of parameters specifies offsets which are used during creation of the items
lst Grid

Vertical Type

Type Name Value Function
int IsVertical 0 or 1 Defines whether the text should be placed horizontal (default=0) or vertical (1)
str LeftText String The text to be shown on every cell on the left side of the truck.
Provide a text with embracing || to enable language independency, i.e. |Open Roof Cover|
str RightText String The text to be shown on every cell on the right side of the truck.
Provide a text with embracing || to enable language independency, i.e. |Open Roof Cover|

Truck Design

Type Name Value Function
str Name String, Closed Truck The naming of the truck designs is hardcoded and currently limited. It distinguishes the parameters and properties for the individual designs.
int Color Positive integer The color index of the design.
str LineType string The name of the linetype (must be present in dwg).
dbl LineTypeScale Positive real number The linetype scale factor.
str DimStyle string The name of the dimension style (must be present in dwg).
dbl TextHeight Positive real number Defines the override of the text height of the dimension style.
dbl DimOffset Positive real number The offset of the dimension line from the referenced location.
str MaxWidth Positive real number The maximum width of a row of items. Any exceeding item will be placed in a new row.

Additional Parameters ‘Closed Truck’

Type Name Value Function
dbl MinLengthTopCover Positive real number The remaining length of the roof cover if completely opened.
str NumArcsTopCover string The amount of arcs of the symbolic polyline.
dbl SymbolOffset Positive real number The offset of the polyline from the referenced location.
str Text String The text prefix to the dimension text. Provide a text with embracing || to enable language independency, i.e. |Open Roof Cover|.

Truck Layout

Type Name Value Function
int Type 0 (horizontal stacking)
1 (vertical stacking)
Specifies the type to which this layout applies to.
If not given the first layout found will be used for any stacking.
int Design 0 (open truck)
1 (closed truck)
2 (Container)
Specifies the design to which this layout applies to.
If not given the first layout found will be used for any stacking.
int Color Positive integer The color index of the design.
str DimStyle string The name of the dimension style (must be present in dwg).
dbl TextHeight Positive real number Defines the override of the text height of the dimension style.
str Blockname String, a block name which can be found in the dwg or in the block search paths Specifies the block to be drawn relative to the base point of the truck.
lst Tag[] List of parameters A list of tags to be shown at the specified locations, see Truck Tag[].

Truck Tag

A tag defines the display of a property at a specific location.

Type Name Value Function
str PropertyName string The name of the property to be displayed.
dbl X Positive real number The X-location of the text relative to the reference point.
dbl Y Positive real number The Y-location of the text relative to the reference point.

Besides the automatic properties of a TslInstance the following project properties are supported:

  • Projectname
  • ProjectComment
  • ProjectNumber
  • ProjectStreet
  • ProjectCity

Item Settings

The settings of the item are structured into the following entries.

Type Name Value Function
lst SurfaceQuality[] A list of parameters The appearance of a set surface qualities.
lst SelectionSet[] A list of parameters A set of selection sets which are provided during insert.
lst Set[] A list of parameters A named set of tags which will be shown on the item.
lst Grid A list of parameters Specifies offsets which are used during creation of the items.

Item – SelectionSet

The SelectionSet[ ] can contain multiple definitions of selection sets. Each set must have a unique name.

Type Name Value Function
str Name A unique string The name of the selection set (displayed on insert).
lst AllowedClass[] A list of allowed classes Describing the entity class.
AllowedClass A String (Beam, Sheet, Sip, MassGroup, MassElement, ElementRoof, ElementWall, ChildPanel)
lst GroupBy[] A list of grouping properties During creation items can be grouped by a set of properties.
str GroupBy A string describing a property Any items matching the given property will be grouped.
lst OrderBy[] A list of ordering sets During creation items can be ordered by a set of properties within their group.
lst OrderBy A list of ordering properties Provides a set of ordering rules.
str Property A string describing a property Any items matching the given property will be grouped.
int IsAscending An integer, 0 = false, 1 = true Toggles whether the given property should be ordered ascending or descending.

Item - Grid

Type Name Value Function
dbl RowOffset Positive real number Offset between two rows of items.
dbl ColumnOffset Positive real number Horizontal offset between two items.
str MaxWidth Positive real number The maximum width of a row of items. Any exceeding item will be placed in a new row.

Tags

There is an option to visualize a property of the item on the front view of the truck with the tsl f_Tag.
This can be done by inserting the f_Tag tsl.

You can specify a dimension style, a text height and a colour.
When the colour is 0 or less, the colour from the truck will be taken.
When the Text height is 0 or less, the textheight will be taken from the dimension style.

There is a “Recalc locations” trigger in the custom menu to recalculate the positions.
This will be useful when changes are made in the positioning of the items in the layers.

Export

In the custom menu of the truck tsl there is a trigger called “Run Export <EXPORTGROUP>”.

This will run the exportgroup specified in the settings xml file.
The export will run with the model entities associated to the items that are stacked on the truck.

Need Support?

Can’t find the answer you’re looking for? Don’t worry we’re here to help!

Contact support