First my thanks in advance for any help that is provided.
Background I am using Revit 2016 and programming in C#.
I have been exploring Shared Parameters in all forms of Revit documents and have identified that all though a shared parameter may have been removed there can be a legacy of that shared parameter left. This can for example prevent a shared parameter with the same GUID but different name being added to a document.
I thought up until recently this was limited to project and templates but recent experience has proven this to be incorrect.
Using a FilteredElementCollector I have been able to identify all the Shared parameters in the document (Project, Template or Family). Within a Project and Template I have then utilised doc.ParameterBindings.Contains(def) to identify those parameters that are still bound to a Category. Those that remain are what I have referred to as legacy shared parameters. I have however been unable to identify a similar method to separate out these legacy parameters in a Family document.
Any help will be much appreciated.
Solved! Go to Solution.
Solved by jeremytammik. Go to Solution.
Dear Stephen,
Thank you for your query.
Sorry, I am not aware of any possibility to achieve this either.
Best regards,
Jeremy