cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Using Expressions to Label Partition Types

Craig Boyer
Graphisoft Alumni
Graphisoft Alumni
With the introduction of expressions in ARCHICAD 22 users can extract and manipulate information from the model. Follow the steps below to learn how to take the name of a composite and abbreviate it for use in a partition tag.
wp-content_uploads_2019_03_Screen-Shot-2019-03-04-at-8.55.10-AM.png
 

1. Go to Options > Composites to open the composites dialogue box.

2. Examine the composite name. Make sure that an abbreviation is separated from the rest of the name via a distinct character. Add a separating character if needed.

Note: A separating character will be needed to split and abbreviate the composite name for use with a partition tag. For example "A1 | Wood 3 1/2" - Gypsum - Gypsum" will be shortened to "A1."

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-2.46.34-PM.png

3. If complex profiles are being used in the project, go to Options > Complex Profiles > Profile Manager and repeat step 2.

4. Go to Options > Property Manager... to open the Property Manager dialogue box.

5. Click the New button to the New Property / Group dialogue box.

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-3.11.10-PM.png

6. In the New Property / Group dialogue box, select Group, enter the Group Name and click OK.

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-3.09.30-PM.png

7. Click the New button again to open the New Property / Group dialogue box.

8. In the New Property / Group dialogue box, select Property, enter the Property Name, set Add to Group to the group that was just created and click OK.

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-12.28.19-PM-1.png

9. Select the newly created group, under the Availability for Classifications tab select Custom and click Edit...

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-4.29.32-PM.png

10. In the Availability dialogue box select Wall and click OK.

Note: This will allow the property being created to be assigned to walls within the project. If a different classification system exists in the file, choose the classification that is used for walls.

 

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-4.29.27-PM.png
11. Select the newly created property and under the Value Definition tab make sure that Data Type is set to String and Default Value is set to Expression. Once Expression is selected, the Expression Editor dialogue will automatically open. This dialogue box can also be accessed by clicking the Add button.

 

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-12.28.49-PM.png

12. In the Expression Editor dialogue box, click the Operators & Functions button.

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-3.27.55-PM.png

13. In the pull down menu, select Split string to left [ SPLITLEFT ] and click Add.

Note: This function will allow the user to discard all information to right of the trimming character. If the wall partition abbreviation was at the end of the name then SPLITRIGHT would be used.

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-3.32.03-PM.png

14. The function will appear in the Expression Editor.

Note: The function contains three components. "Text" is the text data that will be split. In this example that is the composite name. The "Delimiter" is the character in the text that will be used to designate where the split will occur. In the example that will be the "|" in composite name. The PartIndex is an integer that designates which part to keep. With this example, 1 will be entered to keep the first part.

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-12.30.28-PM.png

15. Select "Text" (including the quotation marks) and click the Parameters & Properties... button.

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-12.30.37-PM-1.png

16. In the pulldown menu, under the General Parameters tab, select Composite Structure and click Add.

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-12.29.52-PM.png

17. Select and delete Delimiter (DO NOT include the quotation marks) and enter the trimming character "|".

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-12.30.58-PM-1.png

18. Select and delete PartIndex, enter "1" and click OK.

wp-content_uploads_2019_03_Screen-Shot-2019-03-01-at-12.31.20-PM-1.png

19. If complex profiles are applied to walls in the project, click the Add button under the Value Definition tab. If complex profiles are not used, skip to step 27.

Note: Steps 19-26 essentially repeat the process for creating an expression for editing a composite name but for complex profiles.

20. In the Expression Editor dialogue box, click the Operators & Functions button.

21. In the pull down menu, select Split string to left [ SPLITLEFT ] and click Add.

22. The function will appear in the Expression Editor.

23. Select "Text" (including the quotation marks) and click the Parameters & Properties... button.

24. In the pulldown menu, under the General Parameters tab, select Complex Profile and click Add.

25. Select and delete Delimiter (DO NOT include the quotation marks) and enter the trimming character "|".

26. Select and delete PartIndex, enter "1" and click OK.

27. The expressions for composites and complex profiles will be listed. Click OK to save changes and exit the Property Manager.

wp-content_uploads_2019_03_Screen-Shot-2019-03-04-at-8.50.04-AM.png

28. Open the Label Default Settings and select Property Label 22. Adjust the appearance settings.

29. Under the Symbol Label Custom Setting tab, migrate to the General Settings section. Under Arrange Content select Property Value and choose the newly created property. Click OK.

wp-content_uploads_2019_03_Screen-Shot-2019-03-04-at-9.00.04-AM.png

30. Place the label on a wall.

Note: Consider saving a favorite for the partition label to save time in the future.

wp-content_uploads_2019_03_Screen-Shot-2019-03-04-at-9.08.57-AM.png
Comments

Excuse my ignorance, but I can't imagine the context where that would be useful.

In my little world, the Wall Tag is a reference symbol/Label that corresponds to the Wall Types Legend, which also describes the components/Skins of the Wall, displayed by another Label, perhaps some dimensions.... For example, something like this: 

 2021-11-07_20-46-16.png

Wall Tags don't require any Expressions, you can do it with the basic Labels provided in the program.  https://www.youtube.com/watch?v=YJYUc0vpQyw

 

However, I do appreciate the example for how to create and Expression.  Very good.  Thanks.  

 

 

Laszlo Nagy
Community Admin
Community Admin

Steve,

In your video, your Composites have very simple names like "1", "2", etc. For that, you can use the Label the way you showed it in the video.

In the above article, Composites and Complex Profiles have more complex names that consist of an ID and an Description, separated by a Delimiter character. This is why you need to use Property Expressions to extract just the ID part from the name. Also, it works for both Composites and Complex Profiles.

Yes, I understand.   I think very few people use Archicad like I do.  Perhaps I am the only one 🙂 

David Shorter
Advisor

Here is my 2 cents.

One of my concerns regarding the initial implementation of Expressions was that in most cases a change to (say a wall ) would not take on the Properties of the changed element.

I have attached a JPEG showing a possible solution.

image.jpeg

 

Still looking?

Browse more articles

Back to articles

See latest solutions

Accepted solutions

Start a new discussion!