Revit 2025.3 API
Field |
Sets the spec describing the field's values.
Namespace: Autodesk.Revit.DB.ExtensibleStorage
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public FieldBuilder SetSpec( ForgeTypeId specTypeId )
Public Function SetSpec ( specTypeId As ForgeTypeId ) As FieldBuilder
public: FieldBuilder^ SetSpec( ForgeTypeId^ specTypeId )
member SetSpec : specTypeId : ForgeTypeId -> FieldBuilder
Parameters
- specTypeId ForgeTypeId
- Identifier of the spec.
Return Value
FieldBuilderThe FieldBuilder object may be used to add more details to the field.

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | The SchemaBuilder has already finished building the Schema. -or- The field type does not utilize unit conversions. |
See Also