Ejemplo n.º 1
0
 /// <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
     });
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Construct from an existing Revit Element
 /// </summary>
 /// <param name="type"></param>
 private ModelTextType(Autodesk.Revit.DB.ModelTextType type) : base(type)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initialize a ModelTextType element
 /// </summary>
 /// <param name="type"></param>
 private void InitModelTextType(Autodesk.Revit.DB.ModelTextType type)
 {
     InternalSetModelTextType(type);
 }
Ejemplo n.º 4
0
 /// <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;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Construct from an existing Revit Element
 /// </summary>
 /// <param name="type"></param>
 private ModelTextType(Autodesk.Revit.DB.ModelTextType type)
 {
     SafeInit(() => InitModelTextType(type));
 }