SchemaBuilderAddArrayField Method |
Creates a field containing an array of values in the Schema, with given name and type
of contained values.
Namespace: Autodesk.Revit.DB.ExtensibleStorageAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic FieldBuilder AddArrayField(
string fieldName,
Type fieldType
)
Public Function AddArrayField (
fieldName As String,
fieldType As Type
) As FieldBuilder
public:
FieldBuilder^ AddArrayField(
String^ fieldName,
Type^ fieldType
)
member AddArrayField :
fieldName : string *
fieldType : Type -> FieldBuilder
Parameters
- fieldName String
-
The name of the new field.
- fieldType Type
-
The type of the contents in the new field.
Return Value
FieldBuilder
The FieldBuilder object may be used to add more details to the field. Make sure to set
the unit type if the field contains floating-point values.
Exceptions
Remarks
The supported types for the contents are the same as for simple fields.
See
AddSimpleField(String, Type) for details.
Note that a schema may contain a maximum of 256 fields.
See Also