Example #1
0
        public void AddDefault <TD>(SchemaRootKey key)
        {
            SchemaFieldDef <TD, SchemaRootKey> f = rootFields.GetField <TD>(key);

            rootDict.Add(key,
                         new SchemaRootDataField <TD>(f.Value, f));
        }
Example #2
0
 public void SetValue <TD>(SchemaRootKey key, TD value)
 {
     ((SchemaRootDataField <TD>)rootDict[key]).Value = value;
 }
Example #3
0
 public void Add <TD>(SchemaRootKey key, TD value)
 {
     rootDict.Add(key,
                  new SchemaRootDataField <TD>(value, rootFields.GetField <TD>(key)));
 }
Example #4
0
 public ASchemaDataFieldDef <SchemaRootKey> this[SchemaRootKey key] => rootDict[key];
Example #5
0
 public TD GetValue <TD>(SchemaRootKey key)
 {
     return(((SchemaRootDataField <TD>)rootDict[key]).Value);
 }
Example #6
0
 public SchemaFieldRoot(SchemaRootKey sequence, string name, string desc, TD val,
                        RevitUnitType unitType = RevitUnitType.UT_UNDEFINED, string guid = "") :
     base(sequence, name, desc, val, unitType, guid)
 {
 }
Example #7
0
 public void SetValue <TD>(SchemaRootKey key, TD value)
 {
     ((SchemaFieldRoot <TD>)Fields[key]).Value = value;
 }
Example #8
0
 public TD GetValue <TD>(SchemaRootKey key)
 {
     return(((SchemaFieldRoot <TD>)Fields[key]).Value);
 }
Example #9
0
 public SchemaFieldRoot <TD> GetField <TD>(SchemaRootKey key)
 {
     return((SchemaFieldRoot <TD>)Fields[key]);
 }
Example #10
0
 public ISchemaFieldDef <SchemaRootKey> this[SchemaRootKey key] => Fields[key];