Revit 2019.2 API |
MEPAnalyticalConnectionType..::..FindTypeByName Method |
MEPAnalyticalConnectionType Class See Also |
Finds the analytical connection type by its name.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 19.0.0.0 (19.2.0.66)
Since:
2018
Syntax
C# |
---|
public static ElementId FindTypeByName( Document doc, string name ) |
Visual Basic |
---|
Public Shared Function FindTypeByName ( _ doc As Document, _ name As String _ ) As ElementId |
Visual C++ |
---|
public: static ElementId^ FindTypeByName( Document^ doc, String^ name ) |
Parameters
- doc
- Type: Autodesk.Revit.DB..::..Document
The document where the analytical conneciton type is expected.
- name
- Type: System..::..String
The name of the expected analytical connection type.
Return Value
The element id of matched analytical connection type, otherwise invalidElementId.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentException | name is an empty string. |
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |