ObjectARX学习笔记
一、AutoCAD APIs支持: 1,ObjectARX 2,.NET Managed API 3,COM Automation (VB, Java, Delphi, etc.) 4,AutoLISP 二次开发编程主要采用ObjectARX)和RealDWG,其中ObjectARX是免费的,RealDWG是收费的。 (http://www.autodesk.com/objectarx, http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=770257) API架构:- A DLL plug-in model
- A set of Object Oriented C++ libraries
- A framework
- Modify and extend the drawing database
- Create/modify/erase objects
- Create new types of objects
- Modify AutoCAD’s user interface
- Commands
- Toolbars/dialogs
- Properties Window
- Design Center
- Display system
- Monitor/Modify AutoCAD’s standard behavior
- Event notifications
- Input point acquisition
- acrxEntryPoint
- acrxGetApiVersion
- cast down-cast pointer safely
- isA get class descriptor
- isKindOf is object derived from?
- AcDbEntity *ent;
- if (ent->isKindOf( AcDbLine::desc()))
- {
- AcDbLine *line = AcDbLine::cast(ent);
- //do something with line->startPoint()...
- }
查看完整版本: ObjectARX学习笔记
Tags: