sorry for the "Hard" text to read,
here is a better one:
i try to developp plugin making selection from a list of ID,
the search and selection are OK, but when i want select one item in the 3D view to consult properties,
it select all items of my selection.
i think i just have to extend the selection range to geometry (like in Naviswork) how can i do this in my code ?
code:
#####################################################################################
Dim MySearch As Autodesk.Navisworks.Api.Search = New Search
Dim MySearchResult As New ModelItemCollection
Try
MysearchResult.Clear()
MySearch.SearchConditions.Clear()
MySearch.Selection.SelectAll()
For Each Item As String In MaListeDeRP
Dim sc As SearchCondition = SearchCondition.HasPropertyByDisplayName("PropriétésXXXX", "RP").EqualValue(VariantData.FromDisplayString(Item)) Dim groupe As New List(Of SearchCondition)
groupe.Add(sc)
MySearch.SearchConditions.AddGroup(groupe)
Next
MySearchResult.CopyFrom(MySearch.FindAll(MonDocument, False))
'add in current selection
If Not MySearchResult.IsEmpty Then
MonDocument.CurrentSelection.Clear()
For Each Item As ModelItem In MySearchResult
MonDocument.CurrentSelection.Add(Item)
Next
###############################################################################################################
thanks for answer