cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Document & Visualize forum

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

eddybern
Participant

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
Advisor

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 10 - Visual Studio 2019; ArchiCAD 26

eddybern
Participant

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

Start a new conversation!

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!