BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Collaboration with other software
About model and data exchange with 3rd party solutions: Revit, Solibri, dRofus, Bluebeam, structural analysis solutions, and IFC, BCF and DXF/DWG-based exchange, etc.

Building Material Property and string handling expressions

gdford
Advisor

I am trying to use an expression to do basic string handling on the Building Material All property

SPLIT(Building Material, "-", 2)

also tried SPLITLEFT & RIGHT

this does not generate an error and it does not work.
Any Thoughts??

Thanks

Gary Ford
Self Employed - Modeling, Estimating, Construction
Archicad 12-26
AMD Ryzen 9 5900X 12-Core Processor
3701 Mhz, 12 Core(s), 24 Logical Processor(s)
(RAM) 128 GB
NVIDIA RTX A2000
8 REPLIES 8
Kevin Lee
Enthusiast

As long as you choose "String" as the data type, shouldn't be a problem

KevinLee_0-1664490867908.png

 

Kevin Lee

Director of Technology | BIM

TZG Architects

@gdford could it be that your delimeter is set to 2? Meaning that it will split after the second “-“ that it finds? This would be display ‘CCC’ in the following building material: AAA - BBB - CCC.

If you wanted it to display BBB you would need to use SPLIT and set the delimiter to 1, or SPLITLEFT if you wanted AAA. 

If it’s neither of the above, perhaps share a screenshot of your property expression and the building material name that you have set.

ARCHICAD 25 - Mac OS Monterey - MacBook Pro 2.3Ghz Quad-Core Intel Core i7 16gb DDR3
kmitotk
Advocate

That expression only works with single Building Material elements. If you wanted to split and return a part of all BM names from multiple BM elements such as Composites then there's another way to do it.

Kei Mito

Architect | Graphisoft Certified BIM Manager
ArchiCAD 26 & 27 JPN USA & INT | Windows 10

Just by adding the rules as a sequence I assume?Screen Shot 2022-09-30 at 10.30.19 pm.png

ARCHICAD 25 - Mac OS Monterey - MacBook Pro 2.3Ghz Quad-Core Intel Core i7 16gb DDR3
gdford
Advisor

Interesting - I will give that a look see.

Thanks!

Gary Ford
Self Employed - Modeling, Estimating, Construction
Archicad 12-26
AMD Ryzen 9 5900X 12-Core Processor
3701 Mhz, 12 Core(s), 24 Logical Processor(s)
(RAM) 128 GB
NVIDIA RTX A2000

yep - I tried setting it to 0, 1, and 2 - none of that works

Gary Ford
Self Employed - Modeling, Estimating, Construction
Archicad 12-26
AMD Ryzen 9 5900X 12-Core Processor
3701 Mhz, 12 Core(s), 24 Logical Processor(s)
(RAM) 128 GB
NVIDIA RTX A2000

SPLIT(Building Material ..... does not work - the other examples do work

Gary Ford
Self Employed - Modeling, Estimating, Construction
Archicad 12-26
AMD Ryzen 9 5900X 12-Core Processor
3701 Mhz, 12 Core(s), 24 Logical Processor(s)
(RAM) 128 GB
NVIDIA RTX A2000
kmitotk
Advocate

Your expression [SPLIT(Building Material, "-", 2)] should work only when the element is made of a single building material, otherwise it wouldn't. 

Kei Mito

Architect | Graphisoft Certified BIM Manager
ArchiCAD 26 & 27 JPN USA & INT | Windows 10

Learn and get certified!