Unbound Shared Parameters in Family documents.

Unbound Shared Parameters in Family documents.

stephen_harrison
Advocate Advocate
489 Views
1 Reply
Message 1 of 2

Unbound Shared Parameters in Family documents.

stephen_harrison
Advocate
Advocate

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. 

0 Likes
Accepted solutions (1)
490 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Stephen,

 

Thank you for your query.

 

Sorry, I am not aware of any possibility to achieve this either.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder