RemoveReferenceObject Method (ExternalGeometryId)


Direct Shape Type Remove Reference Object(External Geometry Id) Method

Removes any reference object associated with the provided ExternalGeometryId from the DirectShapeType. Nothing is done if no reference object has the given external ID or if the external ID is an empty string.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void RemoveReferenceObject(
	ExternalGeometryId externalId
)

Parameters

externalId ExternalGeometryId
The ExternalGeometryId of the reference object to be removed.
Exceptions
Exception Condition
ArgumentNullException 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 →