RVTDocs.com

MultiReferenceAnnotationOptions.SetElementsToDimension

Method
Description:
Sets the elements which the dimension will witness.
Remarks:
The dimension will automatically find geometric references in the elements.
Syntax
public void SetElementsToDimension(
	ICollection<ElementId> elementsToDimension
)
Parameters
Parameter Type Description
elementsToDimension ICollection The elements which the dimension will witness.
Return Value
Exceptions
Exception Condition
ArgumentException some elements do not match the reference category required by the MultiReferenceAnnotationType.
ArgumentNullException A non-optional argument was null
InvalidOperationException The MultiReferenceAnnotationType assigned to the options can't create MultiReferenceAnnotations by element.