资源简介
ObjectARX
CAD二次开发源码
学习JIG的简单代码。
实现椭圆的JIG效果。

代码片段和文件信息
// (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 “AdskEllipseJig.h“
#include “tchar.h“
//-----------------------------------------------------------------------------
#define szRDS _RXST(“Adsk“)
//-----------------------------------------------------------------------------
//----- objectARX EntryPoint
class CEllipseJigApp : public AcRxArxApp {
public:
CEllipseJigApp () : 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:
// - AdskEllipseJig._TestEllipse command (do not rename)
static void AdskEllipseJig_TestEllipse(void)
{
// Add your code for command AdskEllipseJig._TestEllipse here
//AdskEllipseJig jig;
//jig.startJig();
AcGePoint3d tempPt;
struct resbuf rbFrom;
struct resbuf rbTo;
if (acedGetPoint(NULL _T(“\n请指定椭圆中心:“) asDblArray(tempPt)) != RTNORM)
{
return ;
}
rbFrom.restype = RTSHORT;
rbFrom.resval.rint = 1;
rbTo.restype = RTSHORT;
rbTo.resval.rint = 0;
acedTrans(asDblArray(tempPt) &rbFrom&rbTo Adesk::kFalseasDblArray(tempPt));
AcGeVector3d x = acdbHostApplicationServices()->workingDatabase()->ucsxdir();
AcGeVector3d y = acdbHostApplicationServices()->workingDatabase()->ucsydir();
AcGeVector3d normalVec = x.crossProduct(y)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3395 2010-05-31 11:02 EllipseJig\EllipseJig\acrxEntryPoint.cpp
文件 6063 2010-06-17 11:26 EllipseJig\EllipseJig\AdskEllipseJig.cpp
文件 2835 2010-05-31 11:15 EllipseJig\EllipseJig\AdskEllipseJig.h
文件 1895 2010-05-29 16:35 EllipseJig\EllipseJig\DocData.cpp
文件 1692 2010-05-29 16:35 EllipseJig\EllipseJig\DocData.h
文件 1673 2010-05-29 16:35 EllipseJig\EllipseJig\EllipseJig.cpp
文件 2167 2010-05-29 16:35 EllipseJig\EllipseJig\EllipseJig.rc
文件 5902 2010-05-29 16:36 EllipseJig\EllipseJig\EllipseJig.vcproj
文件 1477 2010-06-17 15:47 EllipseJig\EllipseJig\EllipseJig.vcproj.CHINA-91734C686.Administrator.user
文件 433 2010-05-29 16:35 EllipseJig\EllipseJig\Resource.h
文件 1371 2010-05-29 16:35 EllipseJig\EllipseJig\StdAfx.cpp
文件 2614 2010-05-31 10:59 EllipseJig\EllipseJig\StdAfx.h
文件 895 2010-05-29 16:35 EllipseJig\EllipseJig.sln
..A..H. 14848 2010-06-17 15:47 EllipseJig\EllipseJig.suo
目录 0 2011-04-17 22:34 EllipseJig\EllipseJig
目录 0 2011-04-17 22:34 EllipseJig
----------- --------- ---------- ----- ----
47260 16
相关资源
- pscad近海风电模型 Fortran语言
- AutoCAD永久去教育版破解补丁
- railroad铁路CAD生成
- CAD中插入带坐标的正射影像——Inse
- VisualStudioUninstaller vs卸载工具
- 组态王驱动开发包3.0.0.7(中文)
- 多窗口后台鼠标连点器
- 使用选择性重传协议实现UDP可靠通信
- VC 获得文件属性 获取文件的创建时
- 读者写者问题(读者优先,写者优先
- 加密cad图形的lisp文件
- Auto CAD_LISP程序集
- CAD2010注册机32bit and 64bit
- 用VC 编写的仿QQ聊天室程序源代码
- 地下停车场CAD设计图
- 实时显示钢筋标注面积V0.44
- 外点法程序
- 外罚函数程序
- CAD计算板料展开插件
- qt-电子点菜系统
- CAD LISP24个源代码
- 推箱子及人工智能寻路C 源代码
- CAD剖面图制作LISP程序
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- MUSIC算法c 实现
- C 餐厅叫号系统(QT平)
- 国际象棋c 完整版
- 一个比较完整的开源cad 图形程序
-
ob
jectARX给Auto CAD加工具条
评论
共有 条评论