资源简介
用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 “PersistReactorManager.h“
//-----------------------------------------------------------------------------
#define szRDS _RXST(“HP“)
//-----------------------------------------------------------------------------
//----- objectARX EntryPoint
class CPersistReactorProApp : public AcRxArxApp {
public:
CPersistReactorProApp () : 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 () {
}
static void AppendtoDatabaseAndClose(AcDbEntity* pEnt AcDbobjectId& idEnt)
{
AcDbBlockTable *pBlockTable;
acdbHostApplicationServices()->workingDatabase()
->getSymbolTable(pBlockTable AcDb::kForRead);
AcDbBlockTableRecord *pBlockTableRecord;
pBlockTable->getAt(ACDB_MODEL_SPACE pBlockTableRecord
AcDb::kForWrite);
pBlockTable->close();
pBlockTableRecord->appendAcDbEntity(idEnt pEnt);
pBlockTableRecord->close();
pEnt->close();
}
public:
// - HPPersistReactorPro.TEST command (do not rename)
static void HPPersistReactorProTEST(void)
{
AcDbobjectIdArray idArr;
for (int i = 0; i <5; i++)
{
AcDbLine* pGroupLine = new AcDbLine(AcGePoint3d(05 + i0) AcGePoint3d(10 5 + i 0));
AcDbobjectId idGroupLine;
AppendtoDatabaseAndClose(p
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3387 2012-12-11 11:36 PersistReactorPro\PersistReactorPro\acrxEntryPoint.cpp
文件 1895 2012-12-11 10:24 PersistReactorPro\PersistReactorPro\DocData.cpp
文件 1692 2012-12-11 10:24 PersistReactorPro\PersistReactorPro\DocData.h
文件 8077 2012-12-11 11:39 PersistReactorPro\PersistReactorPro\MyPersistentObjReactor.cpp
文件 4103 2012-12-11 10:51 PersistReactorPro\PersistReactorPro\MyPersistentObjReactor.h
文件 5648 2012-12-11 11:28 PersistReactorPro\PersistReactorPro\PersistReactorManager.cpp
文件 795 2012-12-11 11:26 PersistReactorPro\PersistReactorPro\PersistReactorManager.h
文件 1680 2012-12-11 10:24 PersistReactorPro\PersistReactorPro\PersistReactorPro.cpp
文件 2200 2012-12-11 10:24 PersistReactorPro\PersistReactorPro\PersistReactorPro.rc
文件 10663 2012-12-11 11:01 PersistReactorPro\PersistReactorPro\PersistReactorPro.vcproj
文件 2727 2012-12-11 11:42 PersistReactorPro\PersistReactorPro\PersistReactorPro.vcproj.ZOUXIN-PC.ZOUXIN.user
文件 440 2012-12-11 10:24 PersistReactorPro\PersistReactorPro\Resource.h
文件 1371 2012-12-11 10:24 PersistReactorPro\PersistReactorPro\StdAfx.cpp
文件 2612 2012-12-11 10:24 PersistReactorPro\PersistReactorPro\StdAfx.h
文件 1270 2012-12-11 10:24 PersistReactorPro\PersistReactorPro.sln
..A..H. 21504 2012-12-11 11:42 PersistReactorPro\PersistReactorPro.suo
目录 0 2012-12-11 11:42 PersistReactorPro\PersistReactorPro
目录 0 2012-12-11 11:43 PersistReactorPro
----------- --------- ---------- ----- ----
70064 18
相关资源
-
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)
评论
共有 条评论