BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Project data & BIM
About BIM-based management of attributes, schedules, templates, favorites, hotlinks, projects in general, quality assurance, etc.
SOLVED!

Property Expressions - Split Option-Set Selections

gdford
Advisor

It would be soooo nice if we could parse the text in an option-set selection using SPLIT.
This would let us key into a data stream instead of only a single bit of data.

 

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
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Laszlo Nagy
Community Admin
Community Admin

You can do this currently. I have just tried it in Ac26 and it works for me.

Create a new Property with the "String" Data Type, and use the STR function in its defining expression to convert your "Option Set" Data Type to "String" Data Type. Then you will be able to use the SPLIT function to obtain the individual parts of the Property.

 

Properties-ConvertOptionSetToString.png

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27

View solution in original post

8 REPLIES 8
Laszlo Nagy
Community Admin
Community Admin

Could you elaborate a bit more on this? Maybe provide an example?

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27

Sorry,

The point here is that in building custom properties in the property manager one of the field types is to have an option set.... Option Sets are great for data integrity, but a chosen option from an option set can not be worked on with an expression. We can use an expression to display the option that was chosen in a schedule or in autotext, but you can not use any of the text-handling features to break apart the chosen option.

For example if I had an option set for finishes I might choose an option like this:

             ST,B,Marble,3/4",Nero Marquina,Stone USA Distributor

If I could use the standard text handling features to parse the text in the option using the coma as a delimiter, then I could turn the option into a database that lets me use which bit of information in need for the task at hand....

I could have a label that points to the object in section that reads "ST-B" for stone type B.
I could have a schedule that is used to create a legend for stone finishes that says Type "B" - Nero Marquina.

The possibilities are endless.

Of course I can do this without using an option set, but option sets dummy proof project data, and if I change something in the option set then everyplace it is use get updated instead of needing to update multiple properties.
But sadly as it is now the case - whatever is displayed in the property for an option set is NOT text.

If Archicad really want to be the BIM, then this is part of the story.
Please use your magical influence and make this happen in the next V25 and V26 update!!!
Thank you for the magic!!

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
Solution
Laszlo Nagy
Community Admin
Community Admin

You can do this currently. I have just tried it in Ac26 and it works for me.

Create a new Property with the "String" Data Type, and use the STR function in its defining expression to convert your "Option Set" Data Type to "String" Data Type. Then you will be able to use the SPLIT function to obtain the individual parts of the Property.

 

Properties-ConvertOptionSetToString.png

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
gdford
Advisor

Ohhhh Myyyyy - and you bring the magic unto me!
Do you think this will work in V25?
Heck - it is already wine time in Texas - bit tipsy - I will have to try this for myself

I am so excited - i just wet myself.
I am going to start calling you "The Magic Man"!
Thank you sir

 

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

Cool beans - this works in V25 as well....
back last year I was complaining about this and you said it could not be done and you suggested I make a wish - I probably made the wish, but I really don't remember.
Maybe they got it fixed or we both just did not know how to pull it off.
Either way - don't really care - just glad I know how to make it work now....
This is amazing!!!

gdford_0-1682551330909.png

 

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

That other wish still stands.

This works for Properties with the "Option Set " Data Type only if the "allow multiple choices" checkbox is not checked in the Options Setup Dialog. Otherwise, they will return a "NULL" value.

 

By the way, I checked this again, and you do not even need to convert an Option Set Property to a String Property, it works without that as well, after all, an Option Set is still a String.

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27

You are correct Laszlo - it was the Multiple Choices that could not be split. I went back and found that I had been splitting the Options back in V25... I get confused at the end of the day after my first glass of wine. It would be amazing to be able to parse out multiple checkbox items with expressions.
Thank you again for being such a great voice in the Archicad Wilderness.

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
Gerry Leonor
Advisor

almost a year in for this post, but is there still no way for this to work with multiple choices allowed for the Options Setup?

for the first image below, we have set of signage codes that that we use for our door schedule. i'd like for our users to easily see what the code stand for, instead of having to jump between windows. it has the code (SN1, SN2...), a colon as delimeter, and the note at the end explaining the type of signage.

GerryLeonor_0-1712356777065.png

 

the second image below is what should appear in the door schedule

GerryLeonor_1-1712356804288.png

 

i'm testing this in 25, but we'll be moving to 27 soon.

AC25 | Win10 | 64 bit | 16Gb RAM |Intel i7 8700 @ 3.20Ghz

come join our unofficial Discord server
https://discord.gg/XGHjyvutt8
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!