- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Some built-in parameters causing us some headache lately. UNIFORMAT_CODE and UNIFORMAT DESCRIPTION definately, but there might be others. Element.Parameters contains them for an ElementType, but not for an Instance, which is as expected, because on the UI these are Type parameters.
First problem is Element.get_Parameter(Enum) returns a ParameterElement from the instance, instead of null, but it never has value. (from the ElementType it has)
The other problem is using these parameters as ParameterValueProvider in an ElementParameterFilter behaves in an unexpected way. In my experience a collector of instance elements gets filtered by an ElementParameterFilter that is constructed from a type parameter, which is while not self-evident, but useful. Due to the first problem this doesn't work for these parameters, because it seems that the ElementParameterFilter works on the non-existent, instance-bound Parameter, so a generic implementation of an ElementParameterFilter from any parameter behaves in an unacceptable inconsistent way.
My question: is this a bug or a feature? If this is a feature: WHY?
Solved! Go to Solution.
Developer Advocacy and Support +