Creates a new pipe schedule type with the given name.
Namespace: Autodesk.Revit.DB.Plumbing
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static PipeScheduleType Create( Document doc, string name )
Parameters
- doc Document
- The document
- name String
- The name of requested schedule type.
Return Value
PipeScheduleTypeReturns the newly created schedule type.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | name is an empty string. |
| ArgumentNullException | A non-optional argument was null |
| InvalidOperationException | The name is already taken by an existing pipe schedule type. |
