Hi @T_Pover
PS.: Haven’t played with Dynamo for years and usual PowerUsers aren’t available.
I’m using a dynmo script in Revit 2020 which works fine with the package MEPover 2020.6.2.
I’m trying to use the same script in Revit 2026 (Dynamo 3.6.1.2665) but the Collect.ModelCategories node first gives me an error message saying the IronPython2 engin can’t be found.
So I switched it to CPython3 in the node python engin version option but it then gives me this error:
AttributeError : ‘ElementId’ object has no attribute ‘IntegerValue’ [’ File “”, line 24, in \n’]
NODE COMPLET:
import clr
clr.AddReference(‘RevitAPI’)
from Autodesk.Revit.DB import *
clr.AddReference(“RevitNodes”)
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
categories = doc.Settings.Categories
model_cat = []
for c in categories:
if c.CategoryType == CategoryType.Model:
if c.SubCategories.Size > 0 or c.CanAddSubcategory:
model_cat.append(Revit.Elements.Category.ById(c.Id.IntegerValue))
else:
continue
OUT = model_cat
What can I do?


