Revit 2025 API
MEPAnalytical |
Creates an analytical connection type element.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static MEPAnalyticalConnectionType Create( Document doc, string name )
Public Shared Function Create ( doc As Document, name As String ) As MEPAnalyticalConnectionType
public: static MEPAnalyticalConnectionType^ Create( Document^ doc, String^ name )
static member Create : doc : Document * name : string -> MEPAnalyticalConnectionType
Parameters
Return Value
MEPAnalyticalConnectionTypeThe created analytical connection type element.

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 |

The newly created type would have the default pressure loss being 0.
Use ElementType.duplicate to copy from any existing type.
See Also