RevitAPI 旋转对象

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/csdn_wuwt/article/details/82782273

RevitAPI 旋转对象。
相关:选择集集合错误
RevitAPI为开发者提供的有很多工具类及方法,方便使用,旋转对象就是其一:

	//
       // 摘要:
       //     Rotates an element about the given axis and angle.
       //
       // 参数:
       //   document:
       //     The document that owns the elements.
       //
       //   elementToRotate:
       //     The element to rotate.
       //
       //   axis:
       //     The axis of rotation.
       //
       //   angle:
       //     The angle of rotation in radians.
       //
       // 异常:
       //   Autodesk.Revit.Exceptions.ArgumentException:
       //     The element elementToRotate does not exist in the document
       //
       //   Autodesk.Revit.Exceptions.ArgumentNullException:
       //     A non-optional argument was NULL
       public static void RotateElement(Document document, ElementId elementToRotate, Line axis, double angle);

该旋转函数在ElementTransformUtils工具类中。

猜你喜欢

转载自blog.csdn.net/csdn_wuwt/article/details/82782273