SharedParameterApplicableRule class has a single constructor:
public SharedParameterApplicableRule(
string parameterName
)
As can be seen, it accepts a parameter name as argument. Oh, no! It will cause confusions since shared parameters are allowed to have duplicate names by Revit. If we'd like to find elements with name ABC as shared parameter with GUID 1111*99 from a big Revit project, SharedParameterApplicableRule along with an ElementParameterFilter may return elements with the same name ABC but with a different GUID aaaa*ff very likely! That would make addins behave very weird, judging from users' end.
So, please add one more constructor accepting GUID argument instead, or simply remove whole SharedParameterApplicableRule class to avoid possible issues here and there, especially for huge projects.
Revit Parameter Organizer has been refining to throw this kind of potential problems away, for example ...
Recent Comments