AssetPropertyGetSingleConnectedAsset Method

Gets the single connected asset attached to this asset property, if it exists.

Namespace: Autodesk.Revit.DB.Visual
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public Asset GetSingleConnectedAsset()

Return Value

Asset
The connected asset, or if there is no connected asset.
Exceptions
ExceptionCondition
InvalidOperationException Asset is connected to more than one asset.
Remarks
Throws if there is more than one connected asset.
See Also