We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-08-02 04:26 PM
Hey again,
I recently posted a question about property value for the zones, but no answe I got. So here it goes again:
What would be the expression for a custom property to count a number of objects based on their library part name, or any similar criteria?
For example: I wat zone, the apartment to count number of beds. Then maybe more complex, would be good to based on number of Beds - apartment type property: for example IF number of beds = 3, then Apartment type = Triple bedroom or soo....
I tried using this expression editor, but i have syntax error, and im not a programmed, so no idea whats the issue...
Operating system used: Windows
2024-08-05 02:33 AM - edited 2024-08-05 02:35 AM
This approach might work for your purpose, using AC’s zone built-in capability to count the objects within it:
a. You can create a custom property that will act as a grouping value for room zones and objects (e.g., Apt Type). It should be made available for both zones and objects.
b. You can select and assign the room zones to the appropriate group/s (e.g., ‘Azure’, Bayou’, ‘Coral’, etc.)
c. Then, similarly assign the desired objects (e.g., beds) to the same group/s, so they match the zones they are within. This effort is a bit redundant, but in this way the objects will be captured in the schedule by their group value.)
d. Schedule the results: the criteria will be set to retrieve the objects (e.g.,“Bed”). The schedule fields will include the group value, room zone ID to list each room under the group (Apt Type) if desired, then the General Parameters ‘Quantity’ to produce the assigned object count. Checking ‘Merge Items’ will tally the objects within.
Hope this helps.
2024-08-05 09:21 AM
Hey Marc!
Thanks for the answer!
I have custom property for each apartment type, deppending on the room. I have created also schedule which shows number of beds, but is valid for them, not for zones, so the field **apartment type** remains with two dashes..
I found counting object property works well, but counts all the objects inside of the zone. So, I wonder what would be a sequence to separate just beds, based on their library part name or so...
Have a nice day!
2024-08-05 06:47 PM - edited 2024-08-05 06:48 PM
In the schedule I described, if you only assign the beds to the apartment type, then it will only show the beds. Alternately, you can restrict the furniture to the bed ID, LP, or other field in the criteria.
2024-08-05 08:01 PM - edited 2024-08-05 09:03 PM
Here are some screen shots of the steps I used and the resulting data.
Note: I have a "PROJECT" group for my custom properties (such as this one) in the Property Manager, instead of putting them under the default AC headings. I just find it easier to find and manage them in one place.
2024-08-30 10:06 AM
Hey Marc,
Thanks for your replies. Will need to check it!
I was trying to define by expression values instead and notoption values, but probably yours is valid too!
Cheers,