zoukankan      html  css  js  c++  java
  • 坐标系操作

    1、设为WCS

      Dim doc As Autodesk.AutoCAD.ApplicationServices.Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument
            doc.Editor.CurrentUserCoordinateSystem = Matrix3d.Identity

    2、平移、旋转 

            'Origin on WCS point: 0,0,6150
            'Rotation of the Zaxis: -90 degrees
            'Rotation of the Yaxis: 6 degrees
            'Rotation of the Xaxis: 35 degrees
            'Rotation of the Yaxis: -9- degrees
            Dim UCS As Matrix3d = Matrix3d.Identity * _
                                  Matrix3d.Displacement(New Vector3d(0.0, 0.0, 6150.0)) * _
                                  Matrix3d.Rotation(Math.PI / -2.0, Vector3d.ZAxis, Point3d.Origin) * _
                                  Matrix3d.Rotation(Math.PI / 30.0, Vector3d.YAxis, Point3d.Origin) * _
                                  Matrix3d.Rotation(7.0 * Math.PI / 36.0, Vector3d.XAxis, Point3d.Origin) * _
                                  Matrix3d.Rotation(Math.PI / -20.0, Vector3d.YAxis, Point3d.Origin)
    
            Dim ed As Editor = ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor
            ed.CurrentUserCoordinateSystem = UCS
  • 相关阅读:
    repo
    manifest
    Gerrit使用简介
    id_rsa id_rsa.pub
    数字签名原理及其应用
    RSA DSA
    ssh(安全协议外壳)
    Numpy基本数据结构
    Numpy
    .bat 批处理
  • 原文地址:https://www.cnblogs.com/rf8862/p/12334295.html
Copyright © 2011-2022 走看看