Collaborate forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Expression question

Mats_Knutsson
Expert
Hi,
I was just asked if it's possible to create a schedule for those zones that accomodates X number of objects. The schedule should show the X objects for the zones with X objects. I can make an expression "no of objects" and use it to filter out all zones with X no of objects (schedule element type is zone) but I can't get that schedule to show all the objects names and ID (element type is object). I suspect it's impossible but I am very noobish with expression so I throw this out here.
Br,
Mats
AC 24 SWE Full
HPZbook 32GB i7 7820HQ 2,9 GHz
Quadro M2200 2GB
3 REPLIES 3

poco2013
Advisor
I think you have too many X's in your question to really understand exactly what you want to schedule. A example might help.

So I'll just answer in general.

You can use a expression (property) to filter out zones based on some criteria - whether true/false or some returned string. Zone properties include the number of items contained within-- as in objects, windows/doors, walls etc. So you could do a criteria based on the number of objects within.

There is noway, that I know, to get the ID of those contained objects. However, I believe, that could be done using Python to create a object list using the command "GetElementsRelatedToZones" , then Adding that list to a property of that zone. That would involve a separate step of having to first execute the script to update. If I am correct, you will, however, have to wait until the release of 24.
Gerry

Windows 10 - Visual Studio 2019; ArchiCAD 25

Mats_Knutsson
Expert
Hi,
I agree about the too many X's...

It basically "for zones with a specific property value, show all objects and their ID".

It's a double operation that I can't make...like you say Python is the way to go.
Br,
Mats
AC 24 SWE Full
HPZbook 32GB i7 7820HQ 2,9 GHz
Quadro M2200 2GB

Barry Kelly
Moderator
I am not sure if I quite follow.
But to me it sounds like you need to set up your zones with the required specific property value.
Then the rest is done in the schedule.
You filter the criteria for all objects in a zone with a specific property value.
Then in the fields you list the object name and ID.


Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!