Formulas for extracting dimension values

The formula in this page extracts the values of various types of dimensions.

NOTE: The formulas requires that you supply the name (ID) of the dimension whose length you want to extract. Here's how to do this: (1) To see the name (ID) of a discrete object: Place the mouse cursor on the object. Do not click. The object becomes highlighted. Then look at the lower left corner of the application's window. (2) To see the name of an object in a Synergy component: Press and hold down CTRL+SHIFT, and then place the mouse cursor on the object. Do not click. The object becomes highlighted. Then look at the lower left corner of the application's window. The pictures below show you where to look for these names.

Extracting Object Length

Use in practice

In the expression of components

Consider the following example, which uses the objsize formula. The example explains the use of the formula in the expression of a component. The height of the rectangular panel equals the dimension that extracts the length of the edge of the triangular panel (Slope1).

Dx & Dy

In cost models

The same formula when used in a cost model. The value of the Distance parameter equals that of the Slope3 dimension.

Dx & Dy

Complex formula expressions

For all the formulas that follow you can use the following square brackets syntax to write complex expressions:

$Oneup1[objsize("BSC1.L5", "") + objsize("BSC1.L7", "")]$

The formula

To Extract Use
A dimension value OneUp1.objsize("name", "")
  1. THE PARAMETERS
  2. name The name (ID) of the dimension whose length you want to extract.
  3. "" These quotation marks must always be empty.
  4. Know your list separator: When typing a formula, make sure you separate its elements with your computer's list separator symbol. Yours may be different from the one used in this guide. Examples (in red):
    With Semicolon With Comma
    $Layout1.Length(Cutting; m; yes); n2$ $Layout1.Length(Cutting, m, yes), n2$
Counting Closed Contours

Examples

To extract the value of a dimension Use Example
With name Slope3 OneUp1.objsize("Slope3"; "") 185.50
With name Radius4 OneUp1.objsize("Radius4"; "") 10.00
Of a component with name ASC74.Slope13 OneUp1.objsize("ASC74.Slope13"; "") 12.00

See the general rules for how to write formulas and format formula results.