RVTDocs.com
Namespace: Autodesk.Revit.DB Class: ScheduleField

ScheduleField.PercentageBy

Property
Description:
The ID of the grouped schedule field used to calculate percentage totals.
Remarks:
A Percentage field calculates what percent of the total of another field each element represents. If PercentageBy is InvalidScheduleFieldId, the total is of all elements in the schedule. If PercentageBy is the ID of one of the fields that the schedule is grouped by, the total is of all elements in that group.
Syntax
public ScheduleFieldId PercentageBy { get; set; }
Exceptions
Exception Condition
ArgumentException When setting this property: percentageBy is not InvalidScheduleFieldId or the ID of a field that the schedule is grouped by.
ArgumentNullException When setting this property: A non-optional argument was null
InvalidOperationException When setting this property: This ScheduleField is not a percentage field.