RotateAround
bool RotateAround(this Element element, Line axis, double angle)Rotates an element around the given axis line by the specified angle in radians.
Parameters
- elementElement
The element to rotate.
- axisLine
Rotation axis.
- angledouble
Angle in radians.
Returns: True if rotated; otherwise false.
Example
Line axis = Line.CreateUnbound(XYZ.Zero, XYZ.BasisZ);element.RotateAround(axis, Math.PI / 2);