/// <summary> /// Create from an existing Revit element /// </summary> /// <param name="modelTextType"></param> /// <param name="isRevitOwned"></param> /// <returns></returns> internal static TextNoteType FromExisting(Autodesk.Revit.DB.TextNoteType type, bool isRevitOwned) { return(new TextNoteType(type) { IsRevitOwned = isRevitOwned }); }
/// <summary> /// Set the internal Element, ElementId, and UniqueId /// </summary> /// <param name="type"></param> private void InternalSetTextNoteType(Autodesk.Revit.DB.TextNoteType type) { this.InternalTextNoteType = type; this.InternalElementId = type.Id; this.InternalUniqueId = type.UniqueId; }
/// <summary> /// Initialize a ModelTextType element /// </summary> /// <param name="type"></param> private void InitTextNoteType(Autodesk.Revit.DB.TextNoteType type) { InternalSetTextNoteType(type); }
/// <summary> /// Construct from an existing Revit Element /// </summary> /// <param name="type"></param> private TextNoteType(Autodesk.Revit.DB.TextNoteType type) { SafeInit(() => InitTextNoteType(type)); }
/// <summary> /// Private constructor for the Element /// </summary> /// <param name="textNoteType"></param> private TextNoteType(Autodesk.Revit.DB.TextNoteType textNoteType) : base(textNoteType) { }