cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Project data & BIM
About BIM-based management of attributes, schedules, templates, favorites, hotlinks, projects in general, quality assurance, etc.
SOLVED!

Is there a limit in lenght for custom properties formulas?

Hi!

I was thinking about an alternative to the way my sum area python script works: https://community.graphisoft.com/t5/Archicad-Python-API/PYTHON-Sum-area-script/td-p/371704 

Atm, the result of the sum is stored in each zone. The problem is that if the zone is locked, the layer is locked, the zone is a module.... the script can't work. I don't think that this is a big problem, i could work on unlocking layers and objects, opening modules, reserving elements, but I would like to test something else.

 

An alternative would be to store with a python/tapir script all the result in a single formula that would look like that:

 

-IF (ZONE NUMBER = A, value of the sum of all area with a zone nuber = A; (ZONE NUMBER = B, value of the sum of all area with a zone nuber = BETC...)  )

 

That would mean I could have several hundred nested Ifs.

 

My questions:
- Is there a size limit for a formula?
- Will I crash Archicad (and my computer?) with formulas that are computationally intensive?

 

Operating system used: Mac Apple Silicon

Archicad 27 - GDL - PYTHON
1 ACCEPTED SOLUTION

Accepted Solutions
Solution

And same question for the project info part, I could store all data in one info if it is possible.

 

EDIT: I tried with 300 values and It worked well. Lets go for a new version !

Archicad 27 - GDL - PYTHON

View solution in original post

1 REPLY 1
Solution

And same question for the project info part, I could store all data in one info if it is possible.

 

EDIT: I tried with 300 values and It worked well. Lets go for a new version !

Archicad 27 - GDL - PYTHON

Setup info provided by author