Esempio n. 1
0
 /// <summary>
 /// Create a Revit FaceWall from an existing reference
 /// </summary>
 /// <param name="wall"></param>
 /// <param name="isRevitOwned"></param>
 /// <returns></returns>
 internal static FaceWall FromExisting(Autodesk.Revit.DB.FaceWall wall, bool isRevitOwned)
 {
     return(new FaceWall(wall)
     {
         IsRevitOwned = isRevitOwned
     });
 }
Esempio n. 2
0
 public static FaceWall Wrap(Autodesk.Revit.DB.FaceWall ele, bool isRevitOwned)
 {
     return(FaceWall.FromExisting(ele, isRevitOwned));
 }
Esempio n. 3
0
 /// <summary>
 /// Initialize a Wall element
 /// </summary>
 /// <param name="wall"></param>
 private void InitFaceWall(Autodesk.Revit.DB.FaceWall wall)
 {
     InternalSetFaceWall(wall);
 }
Esempio n. 4
0
 /// <summary>
 /// Create from an existing Revit Element
 /// </summary>
 /// <param name="wall"></param>
 private FaceWall(Autodesk.Revit.DB.FaceWall wall)
 {
     SafeInit(() => InitFaceWall(wall));
 }
Esempio n. 5
0
 /// <summary>
 /// Set the internal Element, ElementId, and UniqueId
 /// </summary>
 /// <param name="wall"></param>
 private void InternalSetFaceWall(Autodesk.Revit.DB.FaceWall wall)
 {
     InternalFaceWall  = wall;
     InternalElementId = wall.Id;
     InternalUniqueId  = wall.UniqueId;
 }