Total count

How can I get a list with room ID and total parameter b
this list result need.
room 269305 b=0,1524
room 271247 b=0,183 +0,183 +0,1524
room 272409 b=0,183

Hello @P_Fiala,

Maybe something like this?

Home.dyn (9.1 KB)

1 Like

The solution given by @Einar_Raknes is excellent.

The another way to do this using Element.ID, based on ID you can group the Rooms so that you will get Rooms and its values from the list.

If you can pass me the Revit file, I will provide you the shorter solution.

Thanks,
Ritesh

I do that with python in and out…
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.DB import *
#Vstupní údaje k tomuto uzlu budou uloženy jako seznam proměnných IN.
plochy = IN[0]
misnosti=IN[1]
pole=[]
i=0
plocha=0
#Přiřaďte výstup k proměnné OUT.
for index in plochy:
for p in index:
plocha=plocha+p
pole=[plocha]
i=i+1
pole=[i,plocha]
plocha=0

OUT=pole

but I need summary list
room 269305 b=0,1524
room 271247 b=0,183 +0,183 +0,1524=0,5181
room 272409 b=0,183

@P_Fiala Maybe something like this?