Accessing Revit Schedule using Rhino Inside Revit

I want to access information inside of a Revit schedule in order to extract the information inside the comment parameter and create separate lists depending on the family of the items inside the schedule. Is there a way to access this information? I understand schedules are views in Revit so it may be tricker that what it seems like on the surface.

AcessingSchedule_RhinoInside.gh (7.9 KB)

Muhammad may have better ideas but I think it’s going to be more simple and flexible to just create filters and gather those elements by their Paramaters.

@Basualdo_Armando as @Japhy suggested its better to filter the elements by their parameters. If you are still interested you can use the Revit API methods.

import clr
clr.AddReference("RhinoCommon")
clr.AddReference("RevitAPI")
clr.AddReference("RevitAPIUI")
clr.AddReference("RhinoInside.Revit")

from Rhino.Geometry import *
from RhinoInside.Revit import Revit
from Autodesk.Revit import DB
from RhinoInside.Revit.Convert.Geometry import GeometryEncoder, GeometryDecoder

doc = Revit.ActiveDBDocument


elements = DB.FilteredElementCollector(doc, schedule.Id) \
             .WhereElementIsNotElementType() \
             .ToElements()

values = []
missing = []

for e in elements:
    p = e.get_Parameter(Para)
    if p and p.HasValue:
        values.append(p.AsString() or "")
    else:
        values.append(None)
        missing.append(e.Id)

Hi @Basualdo_Armando,

Something like this may be a good start point.

AcessingSchedule_RhinoInside.gh (21.9 KB)