Creates an analytical connection type element.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static MEPAnalyticalConnectionType Create( Document doc, string name )
Parameters
- doc Document
- The document.
- name String
- The name of the analytical type to be created.
Return Value
MEPAnalyticalConnectionTypeThe created analytical connection type element.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | This name is already used by an existing analytical connection type in the document. -or- name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~". -or- name is an empty string. |
| ArgumentNullException | A non-optional argument was null |
