src/Revit/RevitHyparTools/RevitExtensions.cs
/// <summary>
/// Retrieve all of the Element.Geometry.Profiles that describe the Revit PlanarFace
/// Soemtimes a single PlanarFace in Revit and actually multiple "faces" should be translated into multiple Element Profiles
/// </summary>
Retrieve all of the Element.Geometry.Profiles that describe the Revit PlanarFace
Soemtimes a single PlanarFace in Revit and actually multiple "faces" should be translated into multiple Element Profiles
Retrieve all of the Element . Geometry . Profiles that describe the Revit PlanarFace Soemtimes a single PlanarFace in Revit and actually multiple " faces " should be translated into multiple Element Profiles
internal static Elements.Geometry.Profile[] GetProfiles(this PlanarFace face)
        {
            var polygons = face.GetEdgesAsCurveLoops().Select(cL => cL.ToPolygon(true));
            var polygonLoopDict = MatchOuterLoopPolygonsWithInnerHoles(polygons);
            var profiles = polygonLoopDict.Select(kvp => new Elements.Geometry.Profile(kvp.Key, kvp.Value, Guid.NewGuid(), "Revit Profile"));
            var scaledProfiles = profiles.Select(p => p);
            return scaledProfiles.ToArray();
        }
internal static Elements . Geometry . Profile [ ] GetProfiles ( this PlanarFace face ) { var polygons = face . GetEdgesAsCurveLoops ( ) . Select ( cL => cL . ToPolygon ( true ) ) ; var polygonLoopDict = MatchOuterLoopPolygonsWithInnerHoles ( polygons ) ; var profiles = polygonLoopDict . Select ( kvp => new Elements . Geometry . Profile ( kvp . Key , kvp . Value , Guid . NewGuid ( ) , " " ) ) ; var scaledProfiles = profiles . Select ( p => p ) ; return scaledProfiles . ToArray ( ) ; }
Retrieve all of the Element.Geometry.Profiles that describe the Revit PlanarFace
Soemtimes a single PlanarFace in Revit and actually multiple "faces" should be translated into multiple Element Profiles
Retrieve all of the Element . Geometry . Profiles that describe the Revit PlanarFace Soemtimes a single PlanarFace in Revit and actually multiple " faces " should be translated into multiple Element Profiles
PlanarFace
this