资源简介
用VS2005编写的ObjectArx永久反应器例子,将反应器加入到模型空间,程序中有五条直线,拖动一根直线,其他直线也相应的变化。保存DWG图后,再次打开后可继续使用反应器。
代码片段和文件信息
// (C) Copyright 2002-2005 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.h
//-----------------------------------------------------------------------------
#include “StdAfx.h“
#include “resource.h“
#include “MyEntReator.h“
#include “ReactorManager.h“
//-----------------------------------------------------------------------------
#define szRDS _RXST(“HP“)
//-----------------------------------------------------------------------------
//----- objectARX EntryPoint
class CEntReactorApp : public AcRxArxApp {
public:
CEntReactorApp () : 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 () {
}
public:
// - HPEntReactor.test command (do not rename)
static void HPEntReactortest(void)
{
// AcDbobjectId idReactor;
// MyEntReator* pReactor = new MyEntReator;
// CReactorManager::AppendtoDatabaseAndClose(pReactor idReactor);
AcDbobjectIdArray idArr;
for (int i = 0; i <5; i++)
{
AcDbLine* pGroupLine = new AcDbLine(AcGePoint3d(05 + i0) AcGePoint3d(10 5 + i 0));
AcDbobjectId idGroupLine;
CReactorManager::AppendtoDatabaseAndClose(pGroupLine idGroupLine);
idArr.append(idGroupLine);
CReactorManager::attachTo(idGroupLine);
}
}
} ;
//-----------------------------------------------------------------------------
IMPLEMENT_ARX_ENTRYPOINT(CEntReactorApp)
ACED_ARXCOMMAND_ENTRY_AUTO(CEntReactorApp HPEntReactor test test ACR
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3026 2012-12-12 10:06 EntReactor\EntReactor\acrxEntryPoint.cpp
文件 1895 2012-12-12 09:36 EntReactor\EntReactor\DocData.cpp
文件 1692 2012-12-12 09:36 EntReactor\EntReactor\DocData.h
文件 1673 2012-12-12 09:36 EntReactor\EntReactor\EntReactor.cpp
文件 2165 2012-12-12 09:36 EntReactor\EntReactor\EntReactor.rc
文件 10537 2012-12-12 10:03 EntReactor\EntReactor\EntReactor.vcproj
文件 2727 2012-12-12 10:28 EntReactor\EntReactor\EntReactor.vcproj.ZOUXIN-PC.ZOUXIN.user
文件 7903 2012-12-12 09:51 EntReactor\EntReactor\MyEntReator.cpp
文件 4093 2012-12-12 09:48 EntReactor\EntReactor\MyEntReator.h
文件 1999 2012-12-12 10:18 EntReactor\EntReactor\ReactorManager.cpp
文件 420 2012-12-12 10:05 EntReactor\EntReactor\ReactorManager.h
文件 433 2012-12-12 09:36 EntReactor\EntReactor\Resource.h
文件 1371 2012-12-12 09:36 EntReactor\EntReactor\StdAfx.cpp
文件 2612 2012-12-12 09:36 EntReactor\EntReactor\StdAfx.h
文件 1249 2012-12-12 09:36 EntReactor\EntReactor.sln
..A..H. 19456 2012-12-12 10:28 EntReactor\EntReactor.suo
目录 0 2012-12-12 10:29 EntReactor\EntReactor
目录 0 2012-12-12 10:29 EntReactor
----------- --------- ---------- ----- ----
63251 18
- 上一篇:ob
jectArx永久反应器加入到命名字典 - 下一篇:LabVIEW 蓝色控件集
相关资源
-
ob
jectArx永久反应器加入到命名字典 - Word2010版+visio2010永久百度云链接
-
EllipseJig_ob
jectARX - InTouch 9.0/9.5/10永久授权无日期限制,
- 安卓开发全套112G教程-百度网盘-永久
- 九威文件夹图标永久修改器
- arx培训含源代码
- Arx自定义实体代码.rar
- 尚硅谷SpringBoot核心技术篇视频教程,
- 动力节点springboot视频教程,百度网盘
- 爱普生R1390中文永久版清零软件.rar
-
ob
ject ARX 参数化自定义实体的经典 -
ob
ject arx 类天正墙体 的 自定义 - xendesktop 6.5 license 150用户永久
- intouch10.0永久授权无日期限制
- vm15 永久密钥20个
- 织梦采集侠v2.8+破解版+采集侠永久授
- DotNetARX6.0.rar
- 破解时间限制软件,永久使用测试软
- TLB永久有效key.rar
- 佳能MG3180清理软件 永久使用 无限制
-
ob
jectARX2004 custom entity教程 -
按步骤教你如何创建自定义实体ob
- Discuz新秀网络验证系统-UTF8-ver3.0 - 珍
- 佳能MP288清零软件永久版.rar
- intouch 2012 永久授权
- 最新永久免费抖音、快手、火山、皮
- VMware11.x注册机10.x注册机11.x永久不过
- ARX实现屏幕菜单(CAdUiPaletteSet)
- ARX实现屏幕菜单DockControlBar)
评论
共有 条评论