RemoveReferences Method


Independent Tag Remove References Method

Removes the provided list of references from the tag's list of references.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public void RemoveReferences(
	IList<Reference> referencesToRemove
)

Parameters

referencesToRemove IList Reference
References to be removed from tag.
Exceptions
Exception Condition
ArgumentException The operation failed. Please verify that the references are all tagged before removing them.
ArgumentNullException A non-optional argument was null
InvalidOperationException The IndependentTag object does not have a tag behavior. -or- Modifying tag references for MRA owned tag from API is not allowed.
Remarks
If the tag is owned by MRA element, an exception will be thrown.
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 →