zoukankan      html  css  js  c++  java
  • CAD二次开发之 命名空间

    常用的命名空间如下:

    using Autodesk.AutoCAD.DatabaseServices; 
    主要用于数据的存储,如Database,DBPoint,Line等
    using Autodesk.AutoCAD.Geometry
    常用于存储图形元素,如Point3d,Line3d,Curve3d
    using Autodesk.AutoCAD.ApplicationServices;
    主要定义当前的Application、Document
    using Autodesk.AutoCAD.Runtime
    主要用于当前的命令配置
    using Autodesk.AutoCAD.EditorInput 
    using Autodesk.AutoCAD.Interop;
    AcadApplication,AcadDocuemnt等
    using Autodesk.AutoCAD.BoundaryRepresebtation; Brep Edge Mesh等

    常用的DLL和命名空间之间的关系

    • acdbmgd.dll

    包含对ObjectDBX API的封装。用于在图形文件中对对象进行操作。主要的命名空间有

    Autodesk.AutoCAD.Colors
    Autodesk.AutoCAD.DatabaseServices
    Autodesk.AutoCAD.Geometry
    Autodesk.AutoCAD.Runtime
    Autodesk.AutoCAD.GraphicsInterface
    Autodesk.AutoCAD.LayerManager
    •  acmgd.dll
    包含大多数的API的调用,用于在CAD中进行操作
    
    Autodesk.AutoCAD.ApplicationServices
    Autodesk.AutoCAD.EditorInput
    Autodesk.AutoCAD.Windows
    Autodesk.AutoCAD.Windows.ToolPalette
    Autodesk.AutoCAD.Internal.Windows
    Autodesk.AutoCAD.Internal.Forms
        
    • AcCui.dll

        常用于用户界面的封装

    Autodesk.AutoCAD.Customization
    Autodesk.AutoCAD.Customization.Interop
    • AdWindows.dll

    用于当前操作界面的封装,主要是菜单和工具条

    Autodesk.Windows
    Autodesk.Windows.ToolBars
    • acdbmgdbrep.dll

    主要用于查询一些三维实体对象

    Autodesk.AutoCAD.BoundaryRepresentation
  • 相关阅读:
    bzoj4028 [HEOI2015]公约数数列
    bzoj4766 文艺计算姬
    bzoj4241 历史研究
    bzoj3744 Gty的妹子序列
    bzoj4540 [Hnoi2016]序列
    uoj#228 基础数据结构练习题
    bzoj2467 [中山市选2010]生成树
    bzoj2125 最短路
    bzoj4800 [Ceoi2015]Ice Hockey World Championship
    bzoj2463 [中山市选2009]谁能赢呢?
  • 原文地址:https://www.cnblogs.com/minhost/p/10863315.html
Copyright © 2011-2022 走看看