Merged properties expression
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-07-02 02:49 PM
‎2021-07-02
02:49 PM
i'm developing Archicad template now, and wanted to set expression based properties using CONCAT function for door taging/naming by merging different "option set" based properties. Can someone help how to solve situation when one of the basic parameters sometimes should be set "undefined" and thus in the expression based CONCAT function property that one field don't have to be included.
Problem is- the whole expression based value is changing to <undefined> if one of parameters is set as "undefined". For example sometimes i want type of the door to be named "FDR-G" but for other doors just "FDR" without additional option set property included.
Hope my question is somewhat understandable,
Thx,
Kaspars
Labels:
- Labels:
-
Data management
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-07-02 03:07 PM
‎2021-07-02
03:07 PM
Thats what `ISUNDEFINED ( )` is for.
Which AC version are you working on? I'm not sure if that command was there from the beginning (e.g. `IFS` was also added later...).
Which AC version are you working on? I'm not sure if that command was there from the beginning (e.g. `IFS` was also added later...).
Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-07-02 03:13 PM
‎2021-07-02
03:13 PM
I'm developing template now in AC 24
So, if expression line now goes
CONCAT ( Property1; "-";Property2 )
then how do I use that 'ISUNDEFINED' to disable not used subProperty?
Thx,
Kaspars
So, if expression line now goes
CONCAT ( Property1; "-";Property2 )
then how do I use that 'ISUNDEFINED' to disable not used subProperty?
Thx,
Kaspars

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-07-02 04:27 PM
‎2021-07-02
04:27 PM
Like this:
concat ( if ( isundefined ({Property:YourGroup/Prop1}); ""; {Property:YourGroup/Prop1} ); if ( or ( isundefined ({Property:YourGroup/Prop1}); isundefined ({Property:YourGroup/Prop2}) ); ""; "–" ); if ( isundefined ({Property:YourGroup/Prop2}); ""; {Property:YourGroup/Prop2} ) )
Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-07-05 08:36 AM
‎2021-07-05
08:36 AM
Thx a lot,
i'm new to expressions,
will try to figure out logic behind those lines
Kaspars
i'm new to expressions,
will try to figure out logic behind those lines

Kaspars