资源简介
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
相关资源
- CAD点坐标获取小工具.exe
- 板式精馏塔cad图纸
- zw_cadence16.6地址.zip
- CAD的A4图框及标题栏
- 基于PSCAD搭建的第一标准模型
- AUTODOCK软件,最早的对接软件
- 900个cad填充图案打包
- 电子钟,温感,闹铃等功能,PCB-CAM及
- CADworx2013汉化文件
- VHDL 的程序
- 蓝桥杯历年真题视频解析
- 单元级联高压STATCOM仿真-cascaded_Hbrid
- 50nm工艺 CMOS bsim4模型
- CAD桩自动编号及坐标提取工具.rar
- AUTOCAD2007典型应用之轴系零、部件.r
- FPCCAD线路图
- 轴系结构装配图
- Cadence 16.6完美破解
- CAD去除教育版印戳软件
- CADENCE DRC错误代码
- 金橙子easycad二次开发sdk 各版本MarkE
- CAD坐标提取与转换工具(破解版)
- 《AutoCAD .NET开发指南2012版》
-
haarcascade_frontalface_default.xm
l - CadWorx2015国标库-自己摸索出来的
- 进程cpu占用率和内存使用大小获取
- CAD 面积分摊工具
- GPS软件接收机
- 《数据结构及算法经典》源代码.
- GD32F303 串口+DMA 收发数据
评论
共有 条评论