Examples of parametric variables and variable formulas
Here you will find some examples that demonstrate how to use parametric variables and variable formulas to create intelligent custom components that adapt to changes in the model.
The examples are independent from each other.
- Example: Set the end plate material
In this example, you will link a parametric variablevariable used to define a value for a parametric property
A parametric variable does not include a dependency.
For example, name, material grade, and bolt size are parametric variables.
to the end platecomponent object that represents a plate welded perpendicular to the end of the component secondary part
material of a component objectsingle model object that belongs to a component
Component objects created by a component can be modified separately or as a group.
- Example: Create new component objects
In this example, you will create a parametric variable that adds bolts to the custom componentcomponent that the user creates and uses for creating model objects whose composition the user can modify as a group
- Example: Replace sub-components
In this example, you will create a parametric variable that replaces sub-components with other sub-components.
- Example: Modify a sub-component by using a component attribute file
In this example, you will create a parametric variable that modifies a sub-componentcomponent in a nested component that is subordinate to another component
on the basis of a component attribute file.
- Example: Define the stiffener position using construction planes
In this example, you will use construction planes for determining the position of the stiffeners. You will position the stiffeners so that they divide the beam into three equally long sections.
- Example: Determine the bolt size and bolt standard
In this example, you will create two parametric variables that determine the bolt size and bolt standard.
- Example: Calculate the bolt group distance
In this example, you will create a variable formularule stated in a mathematical language
Formula is part of an equation.
that calculates the bolt groupgroup of bolts that forms a connecting building object between an assembly main part and secondary parts
The number of bolts in a bolt group depends on the bolt group shape and the values of bolt distances.
distance from the beam flange.
- Example: Calculate the number of bolt rows
In this example, you will create a variable formula that calculates the number of bolt rows based on the beam height. You will use if statements in the calculations.
- Example: Link variables to user-defined attributes
In this example, you will link parametric variables to the user-defined attributes of panels. You can then use the user-defined attributes in view filters to show or hide the panels.
- Example: Calculate the number of handrail posts using a template attribute
In this example, you will create a variable formula that calculates the number of handrail posts based on the length template attributeattribute in a template object that Tekla Structures uses to calculate and display information from a model database
Template attributes represent object properties.
of the beam. The handrail posts were created at both ends of the beam and one of them was copied with the Array of objects (29) component.
- Example: Link an Excel spreadsheet to a custom component
In this example, you will link a parametric variable to an Excel spreadsheet. For example, you can use Excel spreadsheets to check connections.
- Examples: Rebar set modifiers in custom components
In these examples, you will use rebar set modifiers for defining the properties and hooks of rebar set bars in custom components.