Archicad Python API
About automating tasks in Archicad using the Python API.

ElemPriority <> UIPriority?

_c_
Enthusiast

Does anyone know how the Elem <> UIPriority is calculated?

I am trying to figure out how the connectionPriority of materials in exported xml files makes sense.

_c_
1 ACCEPTED SOLUTION
2 REPLIES 2
Solution
Viktor Kovacs
Graphisoft
Graphisoft

Here is the calculation method between Internal and UI priority:

uiPriority = int ((double) priority * 62.0 / 100.0 - 43.0 * 62.0 + 1.5);

Please note that this is an implementation detail surfaced in the XML, the calculation method may change in the future.

 

_c_
Enthusiast

Thank you! I doubt that I would have figured that out on my own...

_c_

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!