GetExternallyTaggedReference Method


Retrieve a Reference to reference geometry of the DirectShape that is associated with a particular ExternalGeometryId.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2024

Syntax

C#
public Reference GetExternallyTaggedReference(
	ExternalGeometryId externalId
)
Visual Basic
Public Function GetExternallyTaggedReference ( _
	externalId As ExternalGeometryId _
) As Reference
Visual C++
public:
Reference^ GetExternallyTaggedReference(
	ExternalGeometryId^ externalId
)

Parameters

externalId
Type: Autodesk.Revit.DBExternalGeometryId
The ExternalGeometryId of the requested reference object.

Return Value

A Reference to the externally tagged reference GeometryObject having the provided external ID or a null reference (Nothing in Visual Basic) if there is no reference geometry having the external ID.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →