Пример #1
0
        public static dynamic BoundaryCurves(Revit.Elements.FilledRegion filledRegion)
        {
            var iElement = filledRegion.InternalElement as Autodesk.Revit.DB.FilledRegion;
            var cLoop    = iElement.GetBoundaries();

            var returnList = new List <dynamic>();

            foreach (CurveLoop cl in cLoop)
            {
                var tempList = new List <dynamic>();
                returnList.Add(tempList);

                foreach (Autodesk.Revit.DB.Curve c in cl)
                {
                    tempList.Add(c.ToProtoType());
                }
            }

            return(returnList);
        }
Пример #2
0
 public static FilledRegion Wrap(Autodesk.Revit.DB.FilledRegion ele, bool isRevitOwned)
 {
     return(FilledRegion.FromExisting(ele, isRevitOwned));
 }