示例#1
0
 /// <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
     });
 }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <summary>
 /// Initialize a ModelTextType element
 /// </summary>
 /// <param name="type"></param>
 private void InitTextNoteType(Autodesk.Revit.DB.TextNoteType type)
 {
     InternalSetTextNoteType(type);
 }
示例#4
0
 /// <summary>
 /// Construct from an existing Revit Element
 /// </summary>
 /// <param name="type"></param>
 private TextNoteType(Autodesk.Revit.DB.TextNoteType type)
 {
     SafeInit(() => InitTextNoteType(type));
 }
示例#5
0
 /// <summary>
 /// Private constructor for the Element
 /// </summary>
 /// <param name="textNoteType"></param>
 private TextNoteType(Autodesk.Revit.DB.TextNoteType textNoteType) : base(textNoteType)
 {
 }