In order to create the component that Andrew is referring to, you would need to use the Revit API using the pattern of RhPickButton, as Andrew describes – and of course if this is included in HUI, it should only be available in the menus when Revit is the active host. I haven’t built any components for Rhino.Inside yet so I don’t know the specific mechanism, but I assume that it’s part of the SDK based on our usage of Rhino.Inside and existing the Grasshopper plug-ins out there, which only show their functions when they are connected to the available host.
I could see a world where there are a number of supported hosts in HUI, each with the appropriate referenced packages for dev purposes, and they might be separate projects/dll in the repo to allow for better source control independence. The refactor necessary to do this might not be worth the effort, though. Depends how many application-specific components are anticipated in the long run. Intriguing idea either way.
Hmmm I understand.
What I did to solve it was to make an automatic bake for the detail lines (in revit) so they became curves in rhino viewport then I pick it with toggle button.
Thank you guys
Rhino.Inside.Revit provides a set of extension methods on UIDocument that wraps the Revit API selection functionality (due to context changes that are required between Rhino and Revit windows)
Hi,
I would like to prepare HumanUI Rhino.InsidePickButton to have possibility to select Revit elements and also selection filters from HumanUI interface. I have duplicated HUI_RhPickButton and called it HUI_RhInsidePickButton and tried to change the code but despite Rhino.Inside nuget installation the namespace RhinoInside.Revit.External.UI.Selection to use PickObject method is not available.
I would like to prepare left click Human UI button menu the same like at Rhino.Inside to get opportunity to Select One Object, Multiple Object and also selectionFilters.
Unfortunately I have only basic knowledge of C# with Rhino.Inside API so any help and suggestion are welcome.
I’ve tried to find on Rhino.Inside Github Repository code responsible for Graphical Element to better understand the construction left click button and access menu. Unfortunately I couldn’t find it.
I really appreciate to sending the link to that part of repository.
I’m sending link to Github repository where I’m working on this HumanUI button. I will be grateful for every help.