Building
|
Creates a valid BuildingOperatingYearSchedule with the given name, where every day has the schedule daySchedule.
Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)

public static BuildingOperatingYearSchedule Create(
Document document,
BuildingOperatingDaySchedule daySchedule,
string name
)
Parameters
- document Document
- The document to create this BuildingOperatingYearSchedule for.
- daySchedule BuildingOperatingDaySchedule
- A schedule to assign to every day.
- name String
- The intended schedule name, may be modified to disambiguate with existing elements.
Return Value
BuildingOperatingYearScheduleThe newly created BuildingOperatingYearSchedule.

Exception | Condition |
---|---|
ArgumentException | The element daySchedule was not found in the given document. -or- name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~". -or- name must be trimmed. -or- name is an empty string or contains only whitespace. |
ArgumentNullException | A non-optional argument was null |
