Dear all,
In the Search class, there are two methods for us to get the search result, named FindIncremental vs FindAll.
May I know what is the difference between them?
Thank you.
John
Solved! Go to Solution.
Solved by xiaodong_liang. Go to Solution.
Hi John,
happy new year!
As far as I know, the only difference of the two methods is: FindIncremental is designed to work with these LINQ-style statements.e.g.the below is a demo code snippet our experts delivered on AU course:
//searching all the “Stairs” to find items where the “price” is greater than £100
Search search = new Search();
search.Selection.SelectAll();
search.SearchConditions.Add(
SearchCondition.HasPropertyByName("LcRevitData“,
"LcRevitPropertyElementCategory").
EqualValue(VariantData.FromDisplayString("Stairs")));
IEnumerable<ModelItem> expensive_items =
from item in search.FindIncremental(Application.ActiveDocument, false);
where ItemPrice(item) > 100
select item;
Hi Xiaodong,
Happy new year!
Thank you for your point as well as the code snippet.
It makes me clear!
Best Regards,
John