How to get the assigned Categories of my shared Parameters in use?

Hello,

i have here my Parameterlist, i want to see to which category they are asigned!
right now to Rooms but some of them are assigend to MEP-Spaces too, how can i see the that
IsSharedHasRooms.dyn (27.4 KB)

import clr

clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *

clr.AddReference('RevitAPIUI')
from Autodesk.Revit.UI import *

clr.AddReference('System')
from System.Collections.Generic import List

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

#Preparing input from dynamo to revit
params = UnwrapElement(IN[0])
shared = []

for i in params:
    shared.append(i.IsShared)

OUT = shared

Start here and see if you can get further than I did.

1 Like