Project data & BIM
About BIM-based management of attributes, schedules, templates, favorites, hotlinks, projects in general, quality assurance, etc.

PLS Help! Number of certain types of objects in zone - parameter??

Milan
Enthusiast

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

5 REPLIES 5
Marc H
Advisor

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.

“The best thing about the future is that it comes one day at a time.” - Abraham Lincoln

AC27 USA on 16” 2019 MBP (2.4GHz i9 8-Core, 32GB DDR4, AMD Radeon Pro 5500M 8G GDDR5, 500GB SSD, T3s, Trackpad use) running Sonoma OS + extended w/ (2) 32" ASUS ProArt PAU32C (4K) Monitors

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!

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.

“The best thing about the future is that it comes one day at a time.” - Abraham Lincoln

AC27 USA on 16” 2019 MBP (2.4GHz i9 8-Core, 32GB DDR4, AMD Radeon Pro 5500M 8G GDDR5, 500GB SSD, T3s, Trackpad use) running Sonoma OS + extended w/ (2) 32" ASUS ProArt PAU32C (4K) Monitors

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.


A. Create Custom Property & Class Available.pngB Assigning Type to Zones.png


C Assigning Type to Beds.pngD Schedule Settings and Values.png
“The best thing about the future is that it comes one day at a time.” - Abraham Lincoln

AC27 USA on 16” 2019 MBP (2.4GHz i9 8-Core, 32GB DDR4, AMD Radeon Pro 5500M 8G GDDR5, 500GB SSD, T3s, Trackpad use) running Sonoma OS + extended w/ (2) 32" ASUS ProArt PAU32C (4K) Monitors

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,

Setup info provided by author