GetResourceShortDisplayName Method


Gets the short display name of the external resource.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2015

Syntax

C#
public string GetResourceShortDisplayName()
Visual Basic
Public Function GetResourceShortDisplayName As String
Visual C++
public:
String^ GetResourceShortDisplayName()

Return Value

The short display name of the external resource.

Remarks

For an external resource, such as a Rvt Link loaded from an external server, which has a full display path such as "QA Test Data://Nested/Nested_1.rvt", this function returns "Nested_1.rvt". For an external resource, such as a Rvt Link loaded from the "built-in" server, which has a full display path such as "c:\LocalLinks\Link_1.rvt", this function returns "Link_1.rvt".

Exceptions

Exception Condition
Autodesk.Revit.Exceptions InvalidOperationException The ExternalResourceReference (this ExternalResourceReference) is has no valid display path.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →