[求助]CAD R旋转方法是怎么做的 在线等
CAD R旋转方法是怎么做的,编程怎么编呀`~~高手帮下忙~~~我是新人~~谢谢
在线等 Rotate都有哪些方法呀~
复制代码
///
/// 旋转的函数.
///
///
///
///
public static void Rotate(ObjectId id, Point3d basePt, Double angle)
{
Matrix3d mt = Matrix3d.Rotation(angle, Vector3d.ZAxis, basePt);
Database db = HostApplicationServices.WorkingDatabase;
using (Transaction trans = db.TransactionManager.StartTransaction())
{
Entity ent = (Entity)trans.GetObject(id, OpenMode.ForWrite);
ent.TransformBy(mt);
trans.Commit();
}
}
先收藏后来慢慢学习..
页:
[1]