Search for items that have icon value "Geometry"

Not applicable
07-02-2019
01:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to collect Model Items from a file. So, if I use code below (for Type > "Mesh"), it works:
Search search = new Search(); search.Selection.SelectAll(); search.SearchConditions.Add(SearchCondition.HasPropertyByDisplayName("Item", "Type") .EqualValue(VariantData.FromDisplayString("Mesh"))); ModelItemCollection collection = search.FindAll(Application.ActiveDocument, false);
But, when I try to find items in the same way, changing only "Type" to "Icon" and "Mesh" to "Geometry", it gives me an empty collection. As example, I want to get something like this, but only using Search API:
I will be very grateful, if you can help me. Thanks in advance.