Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 public static List <Polyline> InternalPolyline(BH.oM.Physical.Elements.ISurface physicalObject)
 {
     return(physicalObject.Location.IInternalEdges().Select(x => x.ICollapseToPolyline(Tolerance.Angle)).ToList());
 }
Ejemplo n.º 3
0
        /***************************************************/

        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);
        }