GetField Method


Schema Get Field Method

Gets a Field of a given name from the Schema.

Namespace: Autodesk.Revit.DB.ExtensibleStorage
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public Field GetField(
	string name
)

Parameters

name String
The Field name

Return Value

Field
The Field
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
InvalidOperationException Reading of Entities of this Schema is not allowed to the current add-in.
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 →