Get all categories to which shared parameter is assigned

Hello Dear professionals,

Could you advise a good way how to get all categories that are associated with shared parameters.
I already checked one topic:

it does not work. Have no idea why.
error :
image
I need to know which Shared parameters I can delete based on categories list which I expect to get with Dynamo

@m.shcheblykin ,

i can you just give you hint… i stuck after getting the shared parameters…
GetCategoriesOfSharedParameters.dyn (13.7 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 = IN[0]
shared = []

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

OUT = shared


KR
Andreas

Hi,

You could use the Get Shared Parameter node from the Genius Loci package.

1 Like

hello,
thank you for your reply.
The point is that I do not have shared parameters file and only God knows from how many shared parameters file (txt) I got 1600+ shared parameters in the model. I need to find the categories directly from the revit model