資源簡介
AutoCAD ObjectARX/DBX 自定義實體,源碼樣例
VS2008+ARX2010編譯通過,展示了自定義實體的派生,顯示、DWG歸檔、DXF歸檔、變換、控制點、拉伸點等函數的重載
代碼片段和文件信息
//?(C)?Copyright?2002-2007?by?Autodesk?Inc.?
//
//?Permission?to?use?copy?modify?and?distribute?this?software?in
//?object?code?form?for?any?purpose?and?without?fee?is?hereby?granted?
//?provided?that?the?above?copyright?notice?appears?in?all?copies?and?
//?that?both?that?copyright?notice?and?the?limited?warranty?and
//?restricted?rights?notice?below?appear?in?all?supporting?
//?documentation.
//
//?AUTODESK?PROVIDES?THIS?PROGRAM?“AS?IS“?AND?WITH?ALL?FAULTS.?
//?AUTODESK?SPECIFICALLY?DISCLAIMS?ANY?IMPLIED?WARRANTY?OF
//?MERCHANTABILITY?OR?FITNESS?FOR?A?PARTICULAR?USE.??AUTODESK?INC.?
//?DOES?NOT?WARRANT?THAT?THE?OPERATION?OF?THE?PROGRAM?WILL?BE
//?UNINTERRUPTED?OR?ERROR?FREE.
//
//?Use?duplication?or?disclosure?by?the?U.S.?Government?is?subject?to?
//?restrictions?set?forth?in?FAR?52.227-19?(Commercial?Computer
//?Software?-?Restricted?Rights)?and?DFAR?252.227-7013(c)(1)(ii)
//?(Rights?in?Technical?Data?and?Computer?Software)?as?applicable.
//
//-----------------------------------------------------------------------------
//-----?acrxEntryPoint.cpp
//-----------------------------------------------------------------------------
#include?“StdAfx.h“
#include?“resource.h“
//-----------------------------------------------------------------------------
#define?szRDS?_RXST(““)
//-----------------------------------------------------------------------------
//-----?objectARX?EntryPoint
class?CMAP140101App?:?public?AcRxDbxApp?{
public:
CMAP140101App?()?:?AcRxDbxApp?()?{}
virtual?AcRx::AppRetCode?On_kInitAppMsg?(void?*pkt)?{
//?TODO:?Load?dependencies?here
//?You?*must*?call?On_kInitAppMsg?here
AcRx::AppRetCode?retCode?=AcRxDbxApp::On_kInitAppMsg?(pkt)?;
//?TODO:?Add?your?initialization?code?here
return?(retCode)?;
}
virtual?AcRx::AppRetCode?On_kUnloadAppMsg?(void?*pkt)?{
//?TODO:?Add?your?code?here
//?You?*must*?call?On_kUnloadAppMsg?here
AcRx::AppRetCode?retCode?=AcRxDbxApp::On_kUnloadAppMsg?(pkt)?;
//?TODO:?Unload?dependencies?here
return?(retCode)?;
}
virtual?void?RegisterServerComponents?()?{
}
}?;
//-----------------------------------------------------------------------------
IMPLEMENT_ARX_ENTRYPOINT(CMAP140101App)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2269??2010-05-07?15:28??MAP140101\MAP140101\acrxEntryPoint.cpp
?????文件??????11212??2010-05-08?10:07??MAP140101\MAP140101\DBE140101.cpp
?????文件???????4893??2010-05-08?00:04??MAP140101\MAP140101\DBE140101.h
?????文件???????1672??2010-05-07?15:28??MAP140101\MAP140101\MAP140101.cpp
?????文件???????2158??2010-05-07?15:28??MAP140101\MAP140101\MAP140101.rc
?????文件???????9562??2010-05-07?22:54??MAP140101\MAP140101\MAP140101.vcproj
?????文件???????2691??2010-05-15?17:51??MAP140101\MAP140101\MAP140101.vcproj.LYH-PC.李永華.user
?????文件????????432??2010-05-07?15:28??MAP140101\MAP140101\Resource.h
?????文件???????1371??2010-05-07?15:28??MAP140101\MAP140101\StdAfx.cpp
?????文件???????2050??2010-05-07?15:28??MAP140101\MAP140101\StdAfx.h
?????文件??????31661??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\acrxEntryPoint.obj
?????文件??????15064??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\BuildLog.htm
?????文件?????111865??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\DBE140101.obj
?????文件????????658??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\MAP140101.dbx.em
?????文件????????724??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\MAP140101.dbx.em
?????文件????????616??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\MAP140101.dbx.intermediate.manifest
?????文件???????3938??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\MAP140101.obj
?????文件???34406400??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\MAP140101.pch
?????文件????????884??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\MAP140101.res
?????文件?????????67??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\mt.dep
?????文件?????395927??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\StdAfx.obj
?????文件????1723392??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\vc90.idb
?????文件????2076672??2010-05-08?14:17??MAP140101\MAP140101\Win32\Debug\vc90.pdb
?????文件???25504768??2010-05-15?17:51??MAP140101\MAP140101.ncb
?????文件???????1247??2010-05-07?15:28??MAP140101\MAP140101.sln
????..A..H.?????12288??2010-05-15?17:51??MAP140101\MAP140101.suo
?????文件??????88064??2010-05-08?14:17??MAP140101\Win32\Debug\MAP140101.dbx
?????文件???????9688??2010-05-08?14:17??MAP140101\Win32\Debug\MAP140101.exp
?????文件?????853192??2010-05-08?14:17??MAP140101\Win32\Debug\MAP140101.ilk
?????文件??????16332??2010-05-08?14:17??MAP140101\Win32\Debug\MAP140101.lib
............此處省略10個文件信息
評論
共有 條評論