Revit 2021.1 API |
ExternalResourceBrowserData..::..AddResource Method (String, String) |
ExternalResourceBrowserData Class See Also |
Adds an external resource to the folder path by supplying the resource name and version.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since:
2015
Syntax
C# |
---|
public void AddResource( string resourceName, string version ) |
Visual Basic |
---|
Public Sub AddResource ( _ resourceName As String, _ version As String _ ) |
Visual C++ |
---|
public: void AddResource( String^ resourceName, String^ version ) |
Parameters
- resourceName
- Type: System..::..String
The unique short name of external resource.
- version
- Type: System..::..String
The version of external resource.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentException | The resourceName is not a valid resource name used to display in Revit external resource browse UI. The name should be a unique non-empty short name and it should not contain any invalid character of \\/:*?"<>|. The length of combined path(server name + folder path + resourceName) should not exceeds 259. |
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |