on 2019-03-0405:11 PM - edited on 2021-11-2602:05 PM by Rubia Torres
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.
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."
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.
6. In the New Property / Group dialogue box, select Group, enter the Group Name and click OK.
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.
9. Select the newly created group, under the Availability for Classifications tab select Custom and click Edit...
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.
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.
12. In the Expression Editor dialogue box, click the Operators & Functions button.
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.
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.
15. Select "Text" (including the quotation marks) and click the Parameters & Properties... button.
16. In the pulldown menu, under the General Parameters tab, select Composite Structure and click Add.
17. Select and delete Delimiter (DO NOT include the quotation marks) and enter the trimming character "|".
18. Select and delete PartIndex, enter "1" and click OK.
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.
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.
30. Place the label on a wall.
Note: Consider saving a favorite for the partition label to save time in the future.