ScheduleField
A field in a schedule.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.ScheduleField
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ScheduleField : IDisposableThe ScheduleField type exposes the following members.
Properties
Name
Description
Public Property
ColumnHeading
The column heading text.
Public Property
Definition
The ScheduleDefinition that this field belongs to.
Public Property
DisplayType
Indicates the chosen display type for the field.
Public Property
FieldId
The ID of the field in the containing ScheduleDefinition.
Public Property
FieldIndex
The index of the field in the containing ScheduleDefinition.
Public Property
FieldType
The type of data displayed by the field.
Public Property
GridColumnWidth
The width of the column in the editable grid view, measured in feet.
Public Property
HasSchedulableField
Identifies if this ScheduleField object has access to a SchedulableField. Calculated and combined parameter fields will not have the access.
Public Property
HeadingOrientation
The orientation of the column heading text.
Public Property
HorizontalAlignment
The horizontal alignment of the column’s data.
Public Property
IsCalculatedField
Indicates if the field is a calculated field (Formula or Percentage).
Public Property
IsCombinedParameterField
Indicates if the field is a combined parameter field.
Public Property
IsHidden
Indicates if the field is hidden in the schedule.
Public Property
IsOverridden
Indicates if the field is overridden or not.
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
MultipleValuesCustomText
The custom multiple values text to be used when the schedule field displays multiple element values, used when MultipleValuesDisplayType is set to Custom.
Public Property
MultipleValuesDisplayType
Determines the type of multiple value indication to be used when the schedule field displays multiple element values.
Public Property
MultipleValuesText
The multiple values text to be used when the schedule field displays multiple element values, as specified by the display type MultipleValuesDisplayType.
Public Property
ParameterId
The ID of the parameter displayed by the field.
Public Property
PercentageBy
The ID of the grouped schedule field used to calculate percentage totals.
Public Property
PercentageOf
The ID of the field to calculate percentages of.
Public Property
Schedule
The schedule that this field belongs to.
Public Property
SheetColumnWidth
The width of the column on a sheet, measured in feet.
Public Property
TotalByAssemblyType
In an assembly schedule view, indicates if totals are calculated for all assembly instances of the same type or only for a single instance.
Public Property
VerticalAlignment
The vertical alignment of the column’s data.
Methods
Name
Description
Public Method
CanDisplayMinMax
Indicates if this field can display minimum and maximum values.
Public Method
CanTotal
Indicates if totals can be enabled for this field.
Public Method
CanTotalByAssemblyType
Indicates if totals by assembly type can be enabled for this field.
Public Method
CreatesCircularReferences
Checks whether a field ID would create a circular chain of references when used by the PercentageOf property of this field.
Public Method
Dispose
Releases all resources used by the ScheduleField
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetCombinedParameters
Gets this field’s combine parameter array if applicable
Public Method
GetCustomFieldData
Gets the data associated with this custom field. If this field isn’t a CustomField will return ..
Public Method
GetFormatOptions
Gets the FormatOptions to optionally override the default settings in the Units class.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetName
Gets the name of the field.
Public Method
GetSchedulableField
Gets a SchedulableField object representing this field.
Public Method
GetSpecTypeId
The spec describing values of this field, if applicable.
Public Method
GetStyle
Gets the style of this field.
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
IsValidCombinedParameters
Checks if data is valid for combined parameters
Public Method
ResetOverride
Resets the override of this field.
Public Method
SetCombinedParameters
Sets this field’s combine parameter array if applicable
Public Method
Code Example
SetFormatOptions
Sets the FormatOptions to optionally override the default settings in the Units class.
Public Method
SetStyle
Sets the style of this field.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
The ScheduleField class represents a single field in a ScheduleDefinition’s list of fields. Each (non-hidden) field becomes a column in the schedule.
Most commonly, a field represents an instance or type parameter of elements appearing in the schedule. Some fields represent parameters of other related elements, like the room that a scheduled element belongs to. Fields can also represent data calculated from other fields in the schedule, specifically Formula and Percentage fields. Another type of field is Custom Field. For this one, the value for each row is computed based on the (sub)elements that are grouped on that row and can have a graphic representation when the schedule is placed on a sheet.