mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-17 02:49:02 +00:00
replaced with Revit 2021.1 SDK from REVIT_2021_1_SDK.msi, 2020-08-01 12:42 PM 378425344 bytes
This commit is contained in:
@@ -53,7 +53,7 @@ namespace SchemaWrapperTools
|
||||
/// <param name="name">The name of the field</param>
|
||||
/// <param name="typeIn">The AssemblyQualifiedName of the Field's data type</param>
|
||||
/// <param name="spec">The unit type of the Field (set to UT_Undefined for non-floating point types</param>
|
||||
public FieldData(string name, string typeIn, ForgeTypeId spec) : this(name, typeIn, spec, null)
|
||||
public FieldData(string name, string typeIn, string spec) : this(name, typeIn, spec, null)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -65,7 +65,7 @@ namespace SchemaWrapperTools
|
||||
/// <param name="typeIn">The AssemblyQualifiedName of the Field's data type</param>
|
||||
/// <param name="spec">The unit type of the Field (set to UT_Undefined for non-floating point types</param>
|
||||
/// <param name="subSchema">The SchemaWrapper of the field's subSchema, if the field is of type "Entity"</param>
|
||||
public FieldData(string name, string typeIn, ForgeTypeId spec, SchemaWrapper subSchema)
|
||||
public FieldData(string name, string typeIn, string spec, SchemaWrapper subSchema)
|
||||
{
|
||||
m_Name = name;
|
||||
m_Type = typeIn;
|
||||
@@ -83,7 +83,7 @@ namespace SchemaWrapperTools
|
||||
strBuilder.Append(", ");
|
||||
strBuilder.Append(Type);
|
||||
strBuilder.Append(", ");
|
||||
strBuilder.Append(Spec.TypeId);
|
||||
strBuilder.Append(Spec);
|
||||
|
||||
|
||||
if (SubSchema != null)
|
||||
@@ -116,7 +116,7 @@ namespace SchemaWrapperTools
|
||||
/// <summary>
|
||||
/// The Unit type of the field
|
||||
/// </summary>
|
||||
public ForgeTypeId Spec
|
||||
public string Spec
|
||||
{
|
||||
get { return m_Spec; }
|
||||
set { m_Spec = value; }
|
||||
@@ -136,7 +136,7 @@ namespace SchemaWrapperTools
|
||||
private SchemaWrapper m_SubSchema;
|
||||
private string m_Name;
|
||||
private string m_Type;
|
||||
private ForgeTypeId m_Spec;
|
||||
private string m_Spec;
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace SchemaWrapperTools
|
||||
/// <param name="subSchema">The SchemaWrapper of the field's subSchema, if the field is of type "Entity"</param>
|
||||
public void AddData(string name, System.Type typeIn, ForgeTypeId spec, SchemaWrapper subSchema)
|
||||
{
|
||||
m_DataList.Add(new FieldData(name, typeIn.FullName, spec, subSchema));
|
||||
m_DataList.Add(new FieldData(name, typeIn.FullName, spec.TypeId, subSchema));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -254,8 +254,8 @@ namespace SchemaWrapperTools
|
||||
currentFieldData.SubSchema.FinishSchema(); //Recursively create the schema for the subSchema.
|
||||
}
|
||||
|
||||
if (!currentFieldData.Spec.Empty())
|
||||
currentFieldBuilder.SetSpec(currentFieldData.Spec);
|
||||
if (!string.IsNullOrEmpty(currentFieldData.Spec))
|
||||
currentFieldBuilder.SetSpec(new ForgeTypeId(currentFieldData.Spec));
|
||||
}
|
||||
|
||||
//Set all the top level data in the schema we are generating.
|
||||
|
||||
Reference in New Issue
Block a user