資源簡介
自定義實體經典實例(巴西人寫的) 改正版 VS08+objectARX10編譯通過

代碼片段和文件信息
//?(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“
#include?“..\CustEntityDBX\MyCustomEntity.h“
//-----------------------------------------------------------------------------
#define?szRDS?_RXST(“LHW“)
//-----------------------------------------------------------------------------
//-----?objectARX?EntryPoint
class?CCustEntityArxApp?:?public?AcRxArxApp?{
public:
CCustEntityArxApp?()?:?AcRxArxApp?()?{}
virtual?AcRx::AppRetCode?On_kInitAppMsg?(void?*pkt)?{
//?TODO:?Load?dependencies?here
//?You?*must*?call?On_kInitAppMsg?here
AcRx::AppRetCode?retCode?=AcRxArxApp::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?=AcRxArxApp::On_kUnloadAppMsg?(pkt)?;
//?TODO:?Unload?dependencies?here
return?(retCode)?;
}
virtual?void?RegisterServerComponents?()?{
}
//?-?LHWCustEntityArx._MyCustEnt?command?(do?not?rename)
static?void?LHWCustEntityArx_MyCustEnt(void)
{
//?Add?your?code?for?command?LHWCustEntityArx._MyCustEnt?here
//?Input?information
ads_point?pt1pt2;
if?(acedGetPoint(NULL_T(“Set?the?first?point:\n“)pt1)?!=?RTNORM)
return;
if?(acedGetCorner(pt1_T(“Set?the?second?point:\n“)pt2)?!=?RTNORM)
return;
ACHAR?buffer[512];
if?(acedGetString(0_T(“Enter?the?text:\n“)buffer)?!=?RTNORM)
return;
//?Setup?entity
MyCustomEntity?*pEnt?=?new?MyCustomEntity();
pEnt->put_m_PtA(asPnt3d(pt1));
pEnt->put_m_PtAB(AcGePoint3d(pt2[X]pt1[Y]pt1[Z]));
pEnt->put_m_PtB(asPnt3d(pt2));
pEnt->put_m_PtBA(AcGePoint3d(pt1[X]pt2[Y]pt2[Z]));
pEnt->put_m_Text(buffer);
//?Post?to?Database
AcDbBlockTable
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3672??2010-09-08?17:18??CustEntityDBX\CustEntityArx\acrxEntryPoint.cpp
?????文件???????2474??2010-09-08?11:36??CustEntityDBX\CustEntityArx\CustEntityArx.cpp
?????文件???????2181??2010-09-08?11:36??CustEntityDBX\CustEntityArx\CustEntityArx.rc
?????文件???????5485??2010-09-08?17:27??CustEntityDBX\CustEntityArx\CustEntityArx.vcproj
?????文件???????1448??2010-09-09?10:08??CustEntityDBX\CustEntityArx\CustEntityArx.vcproj.LHW.Administrator.user
?????文件???????1895??2010-09-08?11:36??CustEntityDBX\CustEntityArx\DocData.cpp
?????文件???????1692??2010-09-08?11:36??CustEntityDBX\CustEntityArx\DocData.h
?????文件????????436??2010-09-08?11:36??CustEntityDBX\CustEntityArx\Resource.h
?????文件???????1371??2010-09-08?11:36??CustEntityDBX\CustEntityArx\StdAfx.cpp
?????文件???????4795??2010-09-08?11:36??CustEntityDBX\CustEntityArx\StdAfx.h
?????文件???????2284??2010-09-08?11:34??CustEntityDBX\CustEntityDBX\acrxEntryPoint.cpp
?????文件???????2454??2010-09-08?11:34??CustEntityDBX\CustEntityDBX\CustEntityDBX.cpp
?????文件???????2181??2010-09-08?11:34??CustEntityDBX\CustEntityDBX\CustEntityDBX.rc
?????文件???????5496??2010-09-08?11:46??CustEntityDBX\CustEntityDBX\CustEntityDBX.vcproj
?????文件???????1448??2010-09-09?10:08??CustEntityDBX\CustEntityDBX\CustEntityDBX.vcproj.LHW.Administrator.user
????..A..H.????????41??2010-09-09?10:01??CustEntityDBX\CustEntityDBX\Drawing1.dwl
????..A..H.???????194??2010-09-09?10:01??CustEntityDBX\CustEntityDBX\Drawing1.dwl2
?????文件??????10274??2010-09-09?09:50??CustEntityDBX\CustEntityDBX\MyCustomEntity.cpp
?????文件???????4771??2010-09-08?17:25??CustEntityDBX\CustEntityDBX\MyCustomEntity.h
?????文件????????436??2010-09-08?11:34??CustEntityDBX\CustEntityDBX\Resource.h
?????文件???????1371??2010-09-08?11:34??CustEntityDBX\CustEntityDBX\StdAfx.cpp
?????文件???????4343??2010-09-08?11:34??CustEntityDBX\CustEntityDBX\StdAfx.h
?????文件???????1537??2010-09-08?11:46??CustEntityDBX\CustomEntity.sln
????..A..H.?????18432??2010-09-09?10:08??CustEntityDBX\CustomEntity.suo
?????目錄??????????0??2010-09-09?10:09??CustEntityDBX\CustEntityArx
?????目錄??????????0??2010-09-09?10:09??CustEntityDBX\CustEntityDBX
?????目錄??????????0??2010-09-09?10:10??CustEntityDBX
-----------?---------??----------?-----??----
????????????????80711????????????????????27
............此處省略0個文件信息
- 上一篇:使用PWM得到精密的輸出電壓
- 下一篇:activiti工作流高亮圖配置.zip
評論
共有 條評論