GetField Method


Gets a Field of a given name from the Schema.

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

Syntax

C#
public Field GetField(
	string name
)
Visual Basic
Public Function GetField ( _
	name As String _
) As Field
Visual C++
public:
Field^ GetField(
	String^ name
)

Parameters

name
Type: SystemString
The Field name

Return Value

The Field

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException 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 →