RVTDocs.com

ElementTransformUtils.RotateElements

Method
Description:
Rotates a set of elements about the given axis and angle.
Syntax
public static void RotateElements(
	Document document,
	ICollection<ElementId> elementsToRotate,
	Line axis,
	double angle
)
Parameters
Parameter Type Description
document Document The document that owns the elements.
elementsToRotate ICollection The set of elements to rotate.
axis Line The axis of rotation.
angle Double The angle of rotation in radians.
Return Value
Exceptions
Exception Condition
ArgumentException The given element id set is empty. -or- One or more elements in elementsToRotate do not exist in the document.
ArgumentNullException A non-optional argument was null