@@ -8,14 +8,26 @@ namespace Revit.Elements
88 /// <summary>
99 /// A Revit CurtainSystemType
1010 /// </summary>
11- public class CurtainSystemType : ElementType
11+ public class CurtainSystemType : Element
1212 {
1313 #region Internal properties
1414
1515 /// <summary>
1616 /// An internal reference to the CurtainSystemType
1717 /// </summary>
18- internal Autodesk . Revit . DB . CurtainSystemType InternalCurtainSystemType => InternalElementType as Autodesk . Revit . DB . CurtainSystemType ;
18+ internal Autodesk . Revit . DB . CurtainSystemType InternalCurtainSystemType
19+ {
20+ get ; private set ;
21+ }
22+
23+ /// <summary>
24+ /// Reference to the Element
25+ /// </summary>
26+ [ SupressImportIntoVM ]
27+ public override Autodesk . Revit . DB . Element InternalElement
28+ {
29+ get { return InternalCurtainSystemType ; }
30+ }
1931
2032 #endregion
2133
@@ -24,9 +36,38 @@ public class CurtainSystemType : ElementType
2436 /// <summary>
2537 /// Private constructor for the Element
2638 /// </summary>
39+ /// <param name="CurtainSystemType"></param>
40+ private CurtainSystemType ( Autodesk . Revit . DB . CurtainSystemType curtainSystemType )
41+ {
42+ SafeInit ( ( ) => InitCurtainSystemType ( curtainSystemType ) ) ;
43+ }
44+
45+ #endregion
46+
47+ #region Private constructors
48+
49+ /// <summary>
50+ /// Initialize a CurtainSystemType element
51+ /// </summary>
52+ /// <param name="CurtainSystemType"></param>
53+ private void InitCurtainSystemType ( Autodesk . Revit . DB . CurtainSystemType curtainSystemType )
54+ {
55+ InternalSetCurtainSystemType ( curtainSystemType ) ;
56+ }
57+
58+ #endregion
59+
60+ #region Private mutators
61+
62+ /// <summary>
63+ /// Set the CurtainSystemType property, element id, and unique id
64+ /// </summary>
2765 /// <param name="curtainSystemType"></param>
28- private CurtainSystemType ( Autodesk . Revit . DB . CurtainSystemType curtainSystemType ) : base ( curtainSystemType )
66+ private void InternalSetCurtainSystemType ( Autodesk . Revit . DB . CurtainSystemType curtainSystemType )
2967 {
68+ this . InternalCurtainSystemType = curtainSystemType ;
69+ this . InternalElementId = curtainSystemType . Id ;
70+ this . InternalUniqueId = curtainSystemType . UniqueId ;
3071 }
3172
3273 #endregion
@@ -50,7 +91,7 @@ private CurtainSystemType(Autodesk.Revit.DB.CurtainSystemType curtainSystemType)
5091 /// </summary>
5192 /// <param name="name"></param>
5293 /// <returns></returns>
53- public static new CurtainSystemType ByName ( string name )
94+ public static CurtainSystemType ByName ( string name )
5495 {
5596 if ( name == null )
5697 {
@@ -82,7 +123,7 @@ private CurtainSystemType(Autodesk.Revit.DB.CurtainSystemType curtainSystemType)
82123 /// <summary>
83124 /// Create a CurtainSystemType from a user selected Element.
84125 /// </summary>
85- /// <param name="curtainSystemType "></param>
126+ /// <param name="CurtainSystemType "></param>
86127 /// <param name="isRevitOwned"></param>
87128 /// <returns></returns>
88129 internal static CurtainSystemType FromExisting ( Autodesk . Revit . DB . CurtainSystemType curtainSystemType , bool isRevitOwned )
0 commit comments