public static List <Polyline> ExternalPolyline(BH.oM.Physical.Elements.ISurface physicalObject) { if (physicalObject == null) { BH.Engine.Reflection.Compute.RecordError("Cannot query the external polyline of a null surface."); return(new List <Polyline>()); } return(physicalObject.Location.IExternalEdges().Select(x => x.ICollapseToPolyline(Tolerance.Angle)).ToList()); }
public static List <Polyline> InternalPolyline(BH.oM.Physical.Elements.ISurface physicalObject) { return(physicalObject.Location.IInternalEdges().Select(x => x.ICollapseToPolyline(Tolerance.Angle)).ToList()); }
/***************************************************/ public static bool SetLocation(this HostObject element, BH.oM.Physical.Elements.ISurface bHoMObject, RevitSettings settings) { BH.Engine.Reflection.Compute.RecordWarning(String.Format("Update of location of surface-based elements is currently not supported. Possibly DeleteThenCreate PushType could be used instead. Revit ElementId: {0} BHoM_Guid: {1}", element.Id, bHoMObject.BHoM_Guid)); return(false); }