SetCustomFieldProperties Method


Custom Field Data Set Custom Field Properties Method

Sets an instance of ICustomFieldProperties which represents the properties of this field.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void SetCustomFieldProperties(
	ICustomFieldProperties customFieldProperties
)

Parameters

customFieldProperties ICustomFieldProperties
An instance of ICustomFieldProperties which represents the properties of this field.
Exceptions
Exception Condition
ArgumentException The input properties are not valid.
ArgumentNullException A non-optional argument was null
InvalidOperationException Can't set the properties to a CustomFieldData of a SchedulableField (which is not added to a schedule).
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 →