天天看點

[1]ObjectArx - AutoCAD二次開發ObjectArx

ObjectArx

1.什麼是ObjectArx

ObjectArx是AutoCAD對使用者和開發者開放的一個C++ API庫,開發可以用于運作在AutoCAD的“中間件”,擴充AutoCAD的類和協定,編寫自己的指令可以和AutoCAD内置指令一樣。

ObjectDBX 是可用于開發AutoCAD的擴充類庫,可用于ObjectArx和RealDWG SDK。不過RealDWG SDK不是免費的,需要商業授權,可以不需要安裝AutoCAD,對DWG檔案進行讀寫。

dwg和dxf

dwg為二進制的AutoCAD保密的檔案格式,相反dxf是明文寫入的可用于交換資料的檔案格式。dxf reference 在這裡可以找到dxf中每一個塊的code引用。

那可不可以對dwg和dxf讀寫呢?

libredwg 是以[libdwg]為基礎的,C語言開發的一個對dwg讀寫轉換的庫。

dxflib和libdxfrw。這些庫就是根據dxf reference 進行對dxf檔案中的實體、屬性、層等CAD讀寫。

除了C++ ObjectArx外,AutoCAD還支援.NET,LISP,VB,COM等開發的工具。

2.用ObjectArx能幹什麼

  • 讀寫AutoCAD dwg和dxf。
  • 與AutoCAD進行互動
  • 使用MFC編寫自己的互動界面
  • 支援多文檔操作
  • 編寫自己的資料庫類和實體
  • 與其他程式設計環境互動
  • 通路AutoCAD 資料庫中的對象

3.ObjectArx下載下傳位址

ObjectArx 2014(32位和64位)

http://download.autodesk.com/esd/objectarx/2014/Autodesk_ObjectARX_2014_Win_64_and_32Bit.sfx.exe

ObjectArx 2014幫助文檔

http://download.autodesk.com/esd/objectarx/2014/Autodesk_ObjectARX_2014_Documentation.sfx.exe

ObjectArx 2013(32位和64位)

http://download.autodesk.com/esd/objectarx/2013/ObjectARX_2013_Win_64_and_32Bit.exe

2013 幫助文檔

http://download.autodesk.com/esd/objectarx/2013/ObjectARX_2013_Documentation.exe

2012(32位和64位版本)

http://download.autodesk.com/esd/objectarx/2012/ObjectARX_2012_Win_64_and_32Bit.exe

2011(32位和64位版本)

http://download.autodesk.com/esd/objectarx/2011/ObjectARX_2011_Win_64_and_32Bit.exe

2010(32位和64位版本)

http://download.autodesk.com/akdlm/esd/dlm/objectarx/ObjectARX_2010_Win_64_and_32Bit.exe

2009(32位和64位版本)

http://download.autodesk.com/esd/objectarx/2009/ObjectARX_2009_Win_64_and_32Bit.exe

2008 32位版本:

http://download.autodesk.com/esd/objectarx/2008/ObjectARX_2008_32Bit.exe

2008 64位版本:

http://download.autodesk.com/esd/objectarx/2008/ObjectARX_2008_64Bit.exe

AutoCAD的版本和ObjectArx的版本有嚴格的對應關系。

VC6.0 Visual Studio 6.0 - R15 AutoCAD 2000-2002 - ObjectArx 2000-2002

VC7.0 Visual Studio 2002 - R16 AutoCAD 2004-2006 - ObjectArx 2004-2006

VC8.0 Visual Studio 2005 - R17 AutoCAD2007-2009 - ObjectArx 2007-2009

VC9.0 Visual Studio 2008 SP1 - R18 AutoCAD 2010-2012 - ObjectArx 2010-2012

VC10.0 Visual Studio 2010 - R19 AutoCAD 2013-2014 - ObjectArx 2013-2014

VC11.0 Visual Studio 2012 update 4 - R20 AutoCAD 2015-2016 - ObjectArx 2015-2016

VC14.0 Visual Studio 2015 - R21 AutoCAD 2017 -ObjectArx 2017

4.安裝ObjectArx

2008 32位版本:

http://download.autodesk.com/esd/objectarx/2008/ObjectARX_2008_32Bit.exe

根據提示選擇路徑一直下一步即可

繼續閱讀