ScheduleSortGroupField Class


Schedule Sort Group Field Class

A field that is used for sorting and/or grouping in a schedule.
Inheritance Hierarchy
System Object
Autodesk.Revit.DB ScheduleSortGroupField

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ScheduleSortGroupField : IDisposable

The ScheduleSortGroupField type exposes the following members.

Constructors
Name Description
Public method ScheduleSortGroupField Creates a new ScheduleSortGroupField.
Public method ScheduleSortGroupField(ScheduleFieldId) Creates a new ScheduleSortGroupField.
Public method ScheduleSortGroupField(ScheduleFieldId, ScheduleSortOrder) Creates a new ScheduleSortGroupField.
Top
Properties
Name Description
Public property FieldId The ID of the field that the schedule will be sorted or grouped by.
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public property ShowBlankLine Indicates if an empty row should be displayed between groups.
Public property ShowFooter Indicates if a footer row should be displayed after each group.
Public property ShowFooterCount Indicates if the footer row should display a count of elements in the group.
Public property ShowFooterTitle Indicates if the footer row should display a title.
Public property ShowHeader Indicates if a header row should be displayed before each group.
Public property SortOrder Indicates if elements in the schedule will be sorted in ascending or descending order.
Top
Methods
Name Description
Public method Dispose Releases all resources used by the ScheduleSortGroupField
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks

A schedule may be sorted or grouped by one or more of the schedule's fields. The ScheduleSortGroupField class represents one of the fields that the schedule is sorted or grouped by.

Sorting and grouping are related operations. In either case, elements appearing in the schedule are sorted based on their values for the field that the schedule is sorted/grouped by, which automatically causes elements with identical values to be grouped together. By enabling extra header, footer, or blank rows, visual separation between groups can be achieved.

If ScheduleDefinition.IsItemized is false, elements having the same values for all of the fields used for sorting/grouping will be combined onto the same row.

A schedule can be sorted or grouped by data that is not displayed in the schedule by marking the field used for sorting/grouping as hidden using the ScheduleField.IsHidden property.

See Also