AnsweredAssumed Answered

PI AF Attribute Search

Question asked by alexbarata on Dec 11, 2018
Latest reply on Dec 13, 2018 by alexbarata

Hi,

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.

Code:

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

 

Regards,

Alex.

Outcomes