注册 登录
明经CAD社区 返回首页

sunchengbo2007的个人空间 http://www.mjtd.com/?396505 [收藏] [复制] [分享] [RSS]

日志

AutoCAD .NET API 概述

热度 1已有 1147 次阅读2011-6-30 08:10 |个人分类:AutoCAD .NET DevelopGuide翻译|系统分类:开发

Overview of the AutoCAD .NET API

AutoCAD .NET API 概述

The AutoCAD .NET API enables you to manipulate AutoCAD and drawing files programmatically with the assemblies or libraries that are exposed. With these objects exposed, they can be accessed by many different programming languages and environments.

使用AutoCAD .NET API提供的程序集,我们可以通过编程对AutoCAD和图形文件进行操作。并且可以使用许多不同的编程语言和开发环境。

 

There are several advantages to implementing a .NET API for AutoCAD:

AutoCAD 中实现 .NET API 的几大优点:

·         Programmatic access to AutoCAD drawings is opened up to more programming environments. Before the .NET API, developers were limited to ActiveX® Automation and languages that supported COM, AutoLISP®, and C++ with ObjectARX.

  • 更多的编程环境可以编程访问 AutoCAD图形。在 .NET API出现之前,开发人员只能局限于使用 ActiveX® 自动操作和支持COM的语言、AutoLISP® ObjectARX C++

·         Integrating with other Windows® based applications, such as Microsoft Excel and Word, is made dramatically easier by using an application’s native .NET API or exposed ActiveX/COM library.

  • 通过使用应用程序本地化的 .NET API 或公开的 ActiveX/COM 库与其它 Windows® 应用程序(例如 Microsoft Excel Word)共享数据比以前更方便了。

·         The .NET Framework is designed for both 32-bit and 64-bit operating systems. Visual Basic for Applications was only designed for 32-bit operating systems.

·          .NET 框架是为32位及64位操作系统而设计,而VBA只为32位操作系统设计。

·         Allows access to advanced programming interfaces with a lower learning curve than those for more traditional programming languages such as C++.

  • 相对于传统编程语言,如 C++.NET 具有较低的学习成本来访问高级接口。

Objects are the main building blocks of the AutoCAD .NET API. Each exposed object represents a precise part of AutoCAD, and they are grouped into different assemblies and namespaces. There are many different types of objects in the AutoCAD .NET API. For example:

对象是 AutoCAD .NET API 的主要构造块。每一个公开的对象均精确代表一个 AutoCAD 组件,它们之间又组成了不同的程序集和命名空间。AutoCAD .NET API 有许多不同类型的对象。例如:

 

 

·         Graphical objects such as lines, arcs, text, and dimensions

·         直线、圆弧、文字和标注等图形对象都是对象。

·         Style settings such as text and dimension styles

·         文字与标注样式等样式设置都是对象。

·         Organizational structures such as layers, groups, and blocks

·         图层、组合和块等组织结构都是对象。

·         The drawing displays such as view and viewport

·         视图和视口等图形显示都是对象。

·         The drawing and AutoCAD application

·         图形、AutoCAD应用程序本身也是对象。

 

 已同步至 sunchengbo2007的微博

路过

雷人
1

握手

鲜花

鸡蛋

刚表态过的朋友 (1 人)

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-3-29 18:37 , Processed in 0.121881 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部