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

How can I use a sum of values as a parameter for further operations?

eddybern
Contributor

Hello everybody!

 

Topic: design of a condo.

- I create a property for zones that indicates the cut typology of each apartments (i.e. 2,5 means the ap. has a room and a living room, 3,5 means two rooms and a living room, and so on).

Schermata 2022-11-25 alle 16.17.58.png

- Then I created another property that tells how many people can live in each typology (i.e. for a 2,5 ap. I can have 2 inhabitants, for a 3,5 ap. I can have 3, and so on).

Schermata 2022-11-25 alle 16.18.10.png

Now I can have the total number of inhabitants by using a schedule, but can I use that number for further operations? I can't find a way.

Schermata 2022-11-25 alle 16.18.38.png

 

Can I create an expression that sums all the inhabitants and stores the value as a number so that I can use that number as a parameter?

 

2 REPLIES 2
poco2013
Mentor

AFAIK - No.

Expressions can only address the parameters of the element to which they are attached. You could use either a C++ AddOn or a Python script. For this application the Python script would be simple and quick.

Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
eddybern
Contributor

Oh my... isn't there a simpler way?