Regarding the topic, when we select multiple objects in Revit, the component sorts all the objects by their IDs instead of the selection order. This makes it difficult to locate the corresponding Rhino objects within Revit. How can I maintain the selection order in this scenario?
I want to add the parameter values assigned to the Rhino objects. (Let’s say there are 3 objects with different height)
I select the objects in Rhino: H1-H2-H3 using the “Brep” component, and this selection is preserved.
In Revit: I select the corresponding instances of the Rhino objects using the selection component. The selection will be sorted by ID. Result: The H are not assigned as I had planned.
I am aware of a few ways to solve this issue, but they are not straightforward. So, the question is: why is it necessary to sort the selection by ID? Is there any way to maintain the original selection order in Selection component?
When we’re working in a single direction, from Revit to Rhino or vice versa, things seem to be functioning well. However, when we engage in a two-way exchange, Rhino ↔ Revit, some issues arise. Let me explain two scenarios to illustrate this:
Scenario 1:
We create a 3D model in Rhino and then transfer it to Revit, complete with its associated parameters.
Scenario 2: 2) If we need to update the 3D model in Rhino, we retrieve the properties of the Rhino object and gather the parameter values for assignment to the corresponding object in Revit.
If we can maintain the selection order, the process becomes more streamlined. For example, if we select objects in Rhino in the order 1 - 2 - 3 …, we can replicate this order in Revit by selecting objects 1’ - 2’ - 3’ …, which correspond to the objects in Rhino. By doing this, we can ensure that the parameters update accurately and with much greater ease of control.
Currently, the process is a bit more complex. We need to cross-reference object IDs, identify the corresponding objects, and then select them in Rhino accordingly.
Thank @Japhy for taking the time to test and find the solution. Since Rhino objects are combined from surfaces, some data that is assigned to boxes/surfaces will be missing when exploded/trimmed and re-joined. Therefore, it cannot be guaranteed that the workflow will remain intact.
Thank @kike .This is what I’ve been looking for. Just a quick question: When we click the ‘Pick’ and ‘Select’ option in Revit, there is no ‘Finish’ function; we can only press ‘Escape’, and the objects are assigned to the component. Is that normal? Maybe this is a work in progress. I’ll wait for the next release, V1.17.
‘Pick Elements’ is implemented as a series of calls to PickObject method.
This method does not show the ‘Finish’ ‘Cancel’ UI.
Maybe we can provide an alternative UI but meanwhile this is the normal behavior, other Revit commands like ‘Wall’ do a similar thing and should be canceled by pressing ESC, so I don’t feel it that strange.
We have also added ‘Pick Points’ and work the same way. Until we have something better.