EntityGetFieldType(Field, ForgeTypeId) Method |
Retrieves the value of the field in the entity.
Namespace: Autodesk.Revit.DB.ExtensibleStorageAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic FieldType Get<FieldType>(
Field field,
ForgeTypeId unitTypeId
)
Public Function Get(Of FieldType) (
field As Field,
unitTypeId As ForgeTypeId
) As FieldType
public:
generic<typename FieldType>
FieldType Get(
Field^ field,
ForgeTypeId^ unitTypeId
)
member Get :
field : Field *
unitTypeId : ForgeTypeId -> 'FieldType
Parameters
- field Field
-
The field to retrieve.
- unitTypeId ForgeTypeId
-
Identifier of the unit to which the value will be converted before returning. Must be compatible with the spec
specified when creating the Schema.
Type Parameters
- FieldType
-
The type of the field
Return Value
FieldType
Exceptions
Remarks
The template parameter must match the type of the field (specified when creating the
Schema) exactly; this method does not perform data type conversions. The types for containers are
IList for arrays and
IDictionary for maps.
See Also