Example 3: Expand Property with Descriptive Text String

To the Suspended Ceiling Height property value (created in Example 2: Modify Element Parameter, Using an Operator), add a text string that explains this property wherever it is displayed (e.g. on a Zone Stamp).

1.In Property Manager, create a New Property called Suspended Ceiling.

2.Set its Data Type to String.

3.Select the Expression option. The Expression Editor appears.

4.Start by adding the CONCAT function. As indicated in the Function description, CONCAT is used to join two strings together.

https://helpcenter.graphisoft.com/wp-content/uploads/archicad-23-reference-guide/045-propertiesclassifications/ConcatDesc00096.png 

5.When you add the CONCAT function, you can hover over it to see an example of the syntax, as a guide.

https://helpcenter.graphisoft.com/wp-content/uploads/archicad-23-reference-guide/045-propertiesclassifications/ConcatSyntax00097.png 

In this case, the CONCAT function requires a series of string-type arguments, with parentheses on the outside.

6.For the first argument, add the Suspended Ceiling Height property. (Click Parameters and Properties, then search for this property and add it.)

7.For the second argument, enter a Text string in quotes.

8.ARCHICAD warns you that there is a problem:

https://helpcenter.graphisoft.com/wp-content/uploads/archicad-23-reference-guide/045-propertiesclassifications/DataTypeError.png 

The Data Type of one of your arguments is wrong. The CONCAT function requires two string-type arguments, yet your first argument – the Suspended Ceiling Height property – is a Length-type argument.

The solution is to convert the Suspended Ceiling Height value from a Length-type to a String-type value. For this purpose, use the STRCALCUNIT function (see its description in the Function list pop-up):

https://helpcenter.graphisoft.com/wp-content/uploads/archicad-23-reference-guide/045-propertiesclassifications/STRCALCUNITDesc.png 

9.Now you will edit the CONCAT expression in Expression Editor. (If the Editor is not open, select the expression in Property Manager and click Edit; or double-click the expression in the Sequence window).

https://helpcenter.graphisoft.com/wp-content/uploads/archicad-23-reference-guide/045-propertiesclassifications/EditExpression.png 

10.Within the existing expression, apply the STRCALCUNIT function to the Suspended Ceiling Height property.

Make sure to enclose the STRCALCUNIT function, together with its value, in parentheses. (Hover over STRCALCUNIT function to see the example in the pop-up).

https://helpcenter.graphisoft.com/wp-content/uploads/archicad-23-reference-guide/045-propertiesclassifications/STRCALCUNIT.png 

11.You can add spaces and parentheses to the second string, within the quotation marks, to set it off from the first argument.

https://helpcenter.graphisoft.com/wp-content/uploads/archicad-23-reference-guide/045-propertiesclassifications/STRCALCUNITspaces.png 

12.Click OK to close Expression Editor.

13.Define the Property Availability for all Space-classified elements.

14.Click OK to close Property Manager and save the new property.

15.Display the “Suspended Ceiling” property value in the Zone Stamp.

https://helpcenter.graphisoft.com/wp-content/uploads/archicad-23-reference-guide/045-propertiesclassifications/TextInStamp.png 

  • Was this Helpful ?
  • YesNo
Relevant topics
Expand View to Full Screen
From the Toolbox, click the Toggle to Full Screen icon.   Exit Full Screen Click the Full Screen icon again, or click ESC.
Find String [FIND]
Returns the position of a text string (“FindText”) within another text string (“WithinText”). Search starts at first ...