/***************************************************/ public static IEnumerable <IBHoMObject> FromIfc(this IIfcReinforcingBar element, Discipline discipline, IfcSettings settings) { switch (discipline) { default: return(new List <IBHoMObject> { element.ReinforcingBarFromIfc(settings) }); } }
/***************************************************/ /**** Public Methods ****/ /***************************************************/ public static IReinforcingBar ReinforcingBarFromIfc(this IIfcReinforcingBar element, IfcSettings settings) { if (element == null) { BH.Engine.Reflection.Compute.RecordError("The IFC element could not be converted because it was null."); return(null); } settings = settings.DefaultIfNull(); //TODO: refine this! return(new PrimaryReinforcingBar { Name = element.Name }); }