SetSpec Method


Sets the spec describing the field's values.

Namespace: Autodesk.Revit.DB.ExtensibleStorage
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2012

Syntax

C#
public FieldBuilder SetSpec(
	ForgeTypeId specTypeId
)
Visual Basic
Public Function SetSpec ( _
	specTypeId As ForgeTypeId _
) As FieldBuilder
Visual C++
public:
FieldBuilder^ SetSpec(
	ForgeTypeId^ specTypeId
)

Parameters

specTypeId
Type: Autodesk.Revit.DBForgeTypeId
Identifier of the spec.

Return Value

The FieldBuilder object may be used to add more details to the field.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException The SchemaBuilder has already finished building the Schema. -or- The field type does not utilize unit conversions.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →