Revit 2026 API
ApplicationGet |
Gets all the Assets of the specified type.
Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public IList<Asset> GetAssets( AssetType assetType )
Public Function GetAssets ( assetType As AssetType ) As IList(Of Asset)
public: IList<Asset^>^ GetAssets( AssetType assetType )
member GetAssets : assetType : AssetType -> IList<Asset>
Parameters
- assetType AssetType
- The asset type.
Return Value
IListAssetReturns an array of all the Assets within Revit of the specified type.

Exception | Condition |
---|---|
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |
See Also