cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
alexliz
Expert

Custom Property possible? - Zone naming

Is there a way to ask Archicad to return the number of Zone elements which have the same Zone Number as the currently selected Zone?

 

What I need to do:

 

I have a hotel project. Some rooms are standard. Some are 'duplexes', i.e. on two levels, with an internal staircase from 'lower' to 'upper' level. I am using Zones for each space, to track areas for the building schedule.

 

I am looking to name the rooms in my schedule in as easy-to-understand a way as possible, for the client's sake. So, if a room is a standard type (i.e. single level), then I would like it to be listed by its number alone in the schedule. If the 'room' is a duplex, so it corresponds to two Zones in Archicad, then I would like it to occupy the two lines in the schedule as, for example, '21 - L' and '21 - U' to correspond to the 'lower' and the 'upper' levels of that 'room'.

 

I have scripted the Property in Archicad which is concatenating the Zone Number and the Zone Name into one single String. So I can produce the likes of '22 - U' etc.

 

However: when it's a single-level room, i.e. a 'standard', it shows with the dash at the end, for example: '20 - '. I would like to make Archicad aware of the multitude of Zones sharing the same Zone Number (i.e. the 21) as well as of those Zones which are unique (i.e. the 20). And, if a Zone is unique (i.e. no other Zone has the same Zone Number) then I want the Property I have just created to know this, so that it changes the syntax of the resulting String to only contain the Zone Number (as text, of course).

 

I hope I have clarified this enough. Do you think it's possible? Thanks guys.

 

alexliz_1-1771247231494.png

Archicad 29.0.2 (3200) INT; macOS Sonoma
1 Solution

Accepted Solutions
Turit
Booster

In your Zone composite name property you can use IFS statement
IFS ( Zone Category = Duplex, textjoin ... ,
        Zone Category = Standard, Zone number)

Go to post

3 Replies 3

I don't think this is possible without a script (Python, add-on, etc.), but you can add an “ON/OFF property” that you can easily click on in a schedule to activate this change.

Archicad 27 - GDL - PYTHON
Turit
Booster

In your Zone composite name property you can use IFS statement
IFS ( Zone Category = Duplex, textjoin ... ,
        Zone Category = Standard, Zone number)

alexliz
Expert

Thanks Turit (and Mathias).

 

@Turit I got some syntax error at first but tidied it up in the end : )

Archicad 29.0.2 (3200) INT; macOS Sonoma

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!