BomLink Appendix

Variable

Syntax: v.variablename

Example:
if(V.Perimeter_External_Opening >0, V.Perimeter_External_Opening/1000,0) + if(V.modelLength>0, V.modelLength,0)

To access all type of variables created in the Definitions, Sources and the User Defined.

Model

Syntax: m.modeltypeExample: m.Type = ‘Header’ and Eq(m.Width, 44, 0.1) and m.Height <= 219To access all model information based on the group type, sheeting, beams, roofs, etcSuch as : SolidLength, Width, Height, Material, Name, Grade, Label, Sublabel, Beamcode, etc…

Project

Syntax: p.projecttypesetting
Example: p.DrawingPropertiesTo access all hsbcad Project-settings information.Such as : Name, Number, Street, DwgPath, ComputerName, etc….

Inventory

Syntax: i.inventoryitemExample:  if(m.Height = ‘12.5’,i.Code=’GYP-EGL-FR-12.5′,i.code=’GYP-EGL-FR-2.7-15′)To access all the items in the inventory list. Such as : Code Field, Description Field, UOM Field, or other inventory columnheader.

Used functions

The functions will only show if they can be used in the group type.

To access the list:

StartWithIndicates that a string starts with another string.
StartsWith(searhgIn, searchFor)
example
StartsWith(m.Name,’Elephant’)
ContainsIndicates that a string contains another string.
Contains(searchIn, searchFor)
Contains(m.Material,’Pin’)
EqTolerance equals. Returns true or false. Eq(a, b, t) Eq(a, b)
a is compared against b, with tolerance c. If the tolerance is not specified, 0.001 is used.
Eq(m.SolidWidth, 38, 0.001)
IsNullTests for null in a value> Returns true or false.
Is Null(property)
IsNull(m.ExtrProf)
Concatenate or CConcatenates strings.
C(‘One’,’Two’,’Three’)
SectionCreates a Section for beam section comparison.
In the beam context the beam’s Section property can be tested.
m.Section=Section(56,32)
MapReturns values from the Map of GenBeam or TSL.
Map(mapkey, defaultvalue)
Note: The default value is returned if the map key does not exist.
Map(‘MyMap.SubMap.Key’,23)
MapXReturns values from the MapX data of any entity.
MapX(mapkey, defaultvalue)
Note: The default value is returned if the mapx key does not exist.
MapX(‘MyMap.SubMap.Key’,23)
PropertySetReturns values from the Property sets of any entity.
PropertySet(propertyset key, defaultvalue)
Note: The default value is returned if the propertyset key does not exist.
PropertySet(‘MyMap.SubMap.Key’,23)
Alias or AReturns the alias value.
If the aliasSetName is not specified, the default Alias Set is used
Alias(m.Number,’WallType’)=’ExternalWall’
HasPropertySetIndicates whether the specified property set path exists.
HasPropertySet(‘MyPropertySet.Length’)

Mathematical Expressions:

inReturns whether an element is in a set of values.
in(m.Code,’AB’,’AD’,’CC’)
ifReturns a value based on a condition.
if( v.LengteLuifel>=3500,1,0)
RoundRounds a value to the nearest integer or specified number of decimal places.
Round(m.Length/500,0)
Ceiling
Floor
Max
Min
Sign
Truncate
Alias
Updated on 24/09/2020

Was this article helpful?

Related Articles

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