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