Onion package is a small utility package developed by us. It can be used to manipulate or get data from Revit objects.
Onion Package is available through Dynamo Package Manager.
AutoJoin.JoinList – takes two elements lists and tries to join geometry of each element from list A with each element from list B. As the operation might take a while a progress bar is displayed.
Element.LinearIntersection – works with elements that are based on location curves – eg. walls, ducts etc. Returns intersection points of given elements – outputs three lists – elementsA, elementsB and intersection point; extra bool parameter ‘checkSolids’ allows for intersections even if elements have location curves on different levels – duct and wall for example.
Element.LinearSplit – splits a location curve based element at a given point – similarly to Revit’s slice tool. The point has to be located on the elements’s location curve.
GridIntersections.FindClosestIntersection – returns a closest grids’ intersection to a given point; outputs three lists grid A, grid B and an intersection point.