BHoM / Revit_Toolkit

A set of tools enabling exchange of information between BHoM and Revit.
GNU Lesser General Public License v3.0
28 stars 13 forks source link

Revit_Toolkit: Add Revit=> BHoM convert for CableTray objects #859

Closed tiagogrossi closed 3 years ago

tiagogrossi commented 4 years ago

Description:

Following the obj definition of CableTray in MEP_oM and MEP_Engine it is now necessary to create the converts FromRevit. In Revit fittings are not represented as linear objects, only as points for their location, meaning that a pure extraction of geometry from the Revit API will cause gaps in a network of cable trays, like this example: diagram1 One possible attempt to go around this as exemplified in red in the picture, is to bypass the fitting by querying to what it is connected to, and sort of "snap" cable trays together.

An awkward scenario is also found where cable trays are connected to each other WITHOUT fittings, by mistake possibly or by design. In that scenario exemplified in the following picture the original 1 Cable Tray must be split into many, effectively increasing the number of items: diagram2

tiagogrossi commented 4 years ago

@michaelhoehn @kayleighhoude keen to hear your thoughts on this please :)
I currently have a working example with the exemplified in the description above, which bypasses the fittings. Perhaps we put this on pause and tackle fittings first?