IndependentTag.AddReferences Method

Adds the provided list of references to the tag's list of references.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)

Syntax

C#

public void AddReferences(
	IList<Reference> referencesToTag
)

Parameters

referencesToTag  IList<Reference>
References to be tagged.

Exceptions

ExceptionCondition
ArgumentException The operation failed. Please verify that the references are all taggable and that they are not already tagged. -or- This type of tag does not support multiple references.
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

The references must pass the following requirements to be added:

If any of the above rules is not fulfilled, the execution will be stopped and an exception will be thrown

See Also

Reference

IndependentTag Class
Autodesk.Revit.DB Namespace