I'm doing a AF Attribute search for specific category on an element, but when the search run it also look for values on first level of elements. Same issue occurs in PI AF Attribute search.
I would like to know if this is an expected behavior.
AFAttributeList attrList = AFAttribute.FindElementAttributes(db, AssetElement, null, null, null, AFElementType.Any, null, attCategory, TypeCode.Empty, false, AFSortField.Name, AFSortOrder.Ascending, 100);
AF Attribute Search test:
Level 0 search return attribute from level 0 and level 1
Level 1 search return attribute from level 1 and level 2
Level 0 search including sub elements