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

ScheduleField.PercentageOf

Property
Description:
The ID of the field to calculate percentages of.
Remarks:

A Percentage field calculates what percent of the total of another field each element represents. PercentageOf is the ID of the field used to calculate percentages. If PercentageOf is InvalidScheduleFieldId, no data is displayed.

Percentages can only be calculated for numeric fields. The Count field and other percentage fields cannot be used to calculate percentages.

Syntax
public ScheduleFieldId PercentageOf { get; set; }
Exceptions
Exception Condition
ArgumentException When setting this property: percentageOf is not InvalidScheduleFieldId or the ID of a field that can be used to calculated percentages. -or- When setting this property: percentageOf would create a circular chain of references.
ArgumentNullException When setting this property: A non-optional argument was null
InvalidOperationException When setting this property: This ScheduleField is not a percentage field.