Variables for formulas
Fixture catalog
The Variables for formulas dialog box lists all variables that you can use. There are only slight differences in content depending on whether you have selected the dialog box for List text and Free info line 1 and 2 or Invoicing customer/factory and Consider weight.
Note: The program enters the dimensions in the variables in [m], as usual. Use a multiplier if you want to convert the dimensions to a different unit.
The individual variables for formulas:
- L Length [m] = max. length in defined position (defined position stands for the plane defined by the element's local x-axis and local y-axis).
- W Width [m] = max. width in defined position (defined position stands for the plane defined by the element's local x-axis and local y-axis).
- H Height [m]
- U Perimeter/length [m]
- K Max. edge length [m]
- F Area [m²]
- V Volume [m³]
- Q Cross-sectional area [m²]
- QL Cross-section length (length) [m]
- QB Transverse section width (width) [m]
- QH Cross-section height (height) [m]
- R Rough area of architectural opening
- RL Rough length of architectural opening (x-dimension)
- RB Rough height of architectural opening (y-dimension)
- E Element thickness [m]
- S Leaf thickness [m]
- FM Set of formulas
- FW Set of formulas for factory
- b Smart symbol width - 2xV6 = Width of opening in [cm]. For smart opening symbols, this value the wall’s opening width minus twice the value of the smart symbol’s V6 attribute.
- l V9 if V9=0 smart symbol height - 2xV7 = Height of opening in [cm]. For smart opening symbols, this value is the smart symbol’s V9 attribute or, if this value is zero, the wall’s opening height minus twice the value of the smart symbol’s V7 attribute.
You can also use the aforementioned variables for formulas to include special components, modeled objects and linear fixtures with outline in the table on the element plan, in invoicing lists as well as in production data.
The following variables for formulas are only available if you have selected the dialog box for List text and Free info line 1 and 2:
- PT Plan text = plan text produced by the rule for label styles in the manufacturer catalog or user catalog.
- CT Construction name = Name of fixture from Allplan, Article or Manufacturer Catalog.
- P1...P9 Value of the i-th prompt parameter = User-defined answer to the i-th prompt you must give when you enter the fixture in Allplan, for example $P1 (see "Placing fixtures in Allplan")
Note: You can also assign up to 5 prompts to the smart opening symbols. The program uses the variables $P1 to $P5 to evaluate these prompts. - M Smart symbol/material name = Name of smart opening symbol = reference text of fixture
- SP (SEPos) Mark number of insulating boards
- FF Stirrup cage number (only for NC generator)
- SQ Stirrup cage sequence number (only for NC generator)
- A Stop position of smart symbol = Door swing. The program calculates the ”le” and ”ri” attributes directly from the geometric information about the position of the door hinge relative to the smart door symbol.
- In addition to these general variables for formulas, there are also other variables for .
The following variables for formulas are only available for Invoicing customer/factory and Consider weight:
- #1...#5 SI-value of the i-th prompt parameter, for example, #0.01 (see definition of fixtures in Allplan)
Click Transfer variable to text box to transfer the selected variable to the text line below. The variable will be inserted at the current cursor position. When you select the P1…P9 or #1...#5 variables, you can enter the required number in an additional text box.
Click
Formula editor (insert CAD attribute or formula) to use the Formula editor to insert an attribute or a formula at the current cursor position. You can use the formula editor as usual. A single attribute is represented by @[number]@ in the text line. A formula expression requires escape characters, that is to say, the formula is enclosed by <![formula]!> (For example: <!PARENTPRECAST(@1461@)!> .
Note: If you want to change the attribute or formula, we recommend selecting the attribute or formula (including the angle brackets) beforehand.
Click
to transfer the finished text line to the box of the catalog.
Note: By using variables and attributes, you can use expressions for texts and formulas which the program does not compute until you output data. The program computes the attributes or formulas before outputting data (lists, table in element plan, and so on).
K and U variables for symbol fixtures
The program computes the values for the K (maximum edge length [m]) and U (perimeter [m]) variables for symbol fixtures as follows:
- First, the program looks for the longest polyhedron edge of the fixture.
Note: The fixture must have a polyhedron defined as a 3D foil! - If the longest polyhedron edge is parallel to the XY plane of the corresponding view, the program turns the fixture so that its longest edge is placed at 0 degrees in this plane.
In this position,- K defines the maximum in the x-direction, y-direction, or z-direction.
- U = 2X+2Y.
- If the longest polyhedron edge is not within the XY plane, the program turns the fixture so that its longest edge is placed along the z-axis. The program then looks for the longest edge that is within the plane that is parallel to the XY plane. Finally, the program turns the fixture so that its longest edge is placed at 0 degrees (parallel to the x-axis).
The following still applies:- K defines the maximum in the x-direction, y-direction, or z-direction.
- U = 2X+2Y.