ScheduleField
Description:
A field in a schedule.
A field in a schedule.
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.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.ScheduleField
System.Object
Autodesk.Revit.DB.ScheduleField
public class ScheduleField : IDisposable
| Name | Return Type | Description |
|---|---|---|
| CanDisplayMinMax() | bool | Indicates if this field can display minimum and maximum values. |
| CanTotalByAssemblyType() | bool | Indicates if totals by assembly type can be enabled for this field. |
| CanTotal() | bool | Indicates if totals can be enabled for this field. |
| CreatesCircularReferences(ScheduleFieldId) | bool | Checks whether a field ID would create a circular chain of references when used by the PercentageOf property of this field. |
| Dispose() | None | Releases all resources used by the |
| GetCombinedParameters() | IList<TableCellCombinedParameterData> | Gets this field's combine parameter array if applicable |
| GetFormatOptions() | FormatOptions | Gets the FormatOptions to optionally override the default settings in the Units class. |
| GetName() | string | Gets the name of the field. |
| GetSchedulableField() | The SchedulableField object. | Gets a SchedulableField object representing this field. |
| GetSpecTypeId() | ForgeTypeId | The spec describing values of this field, if applicable. |
| GetStyle() | TableCellStyle | Gets the style of this field. |
| IsValidCombinedParameters(IList<TableCellCombinedParameterData>) | bool | Checks if data is valid for combined parameters |
| ResetOverride() | None | Resets the override of this field. |
| SetCombinedParameters(IList<TableCellCombinedParameterData>) | None | Sets this field's combine parameter array if applicable |
| SetFormatOptions(FormatOptions) | None | Sets the FormatOptions to optionally override the default settings in the Units class. |
| SetStyle(TableCellStyle) | None | Sets the style of this field. |
| Name | Return Type | Description |
|---|---|---|
| ColumnHeading | string | The column heading text. |
| Definition | ScheduleDefinition | The ScheduleDefinition that this field belongs to. |
| DisplayType | ScheduleFieldDisplayType | Indicates the chosen display type for the field. |
| FieldId | ScheduleFieldId | The ID of the field in the containing ScheduleDefinition. |
| FieldIndex | int | The index of the field in the containing ScheduleDefinition. |
| FieldType | ScheduleFieldType | The type of data displayed by the field. |
| GridColumnWidth | double | The width of the column in the editable grid view, measured in feet. |
| HasSchedulableField | bool | Identifies if this ScheduleField object has access to a SchedulableField. Calculated and combined parameter fields will not have the access. |
| HeadingOrientation | ScheduleHeadingOrientation | The orientation of the column heading text. |
| HorizontalAlignment | ScheduleHorizontalAlignment | The horizontal alignment of text in the column. |
| IsCalculatedField | bool | Indicates if the field is a calculated field (Formula or Percentage). |
| IsCombinedParameterField | bool | Indicates if the field is a combined parameter field. |
| IsHidden | bool | Indicates if the field is hidden in the schedule. |
| IsOverridden | bool | Indicates if the field is overridden or not. |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| ParameterId | ElementId | The ID of the parameter displayed by the field. |
| PercentageBy | ScheduleFieldId | The ID of the grouped schedule field used to calculate percentage totals. |
| PercentageOf | ScheduleFieldId | The ID of the field to calculate percentages of. |
| Schedule | ViewSchedule | The schedule that this field belongs to. |
| SheetColumnWidth | double | The width of the column on a sheet, measured in feet. |
| TotalByAssemblyType | bool | In an assembly schedule view, indicates if totals are calculated for all assembly instances of the same type or only for a single instance. |
| UnitType | UnitType | The unit type of this field, if applicable. |