摘要:
CWnd *wTextCmdLine = acedGetAcadTextCmdLine(); if (wTextCmdLine != NULL) { ::EnumChildWindows(wTextCmdLine->m_hWnd,EnumChildProc,0); } BOOL CALLBACK E 阅读全文
posted @ 2020-03-01 22:45
中国膜结构网mjgou
阅读(374)
评论(0)
推荐(0)
摘要:
Acad::ErrorStatus getSysVar(LPCTSTR varName, AcGePoint3d& val) { resbuf rb; if (acedGetVar(varName, &rb) == RTNORM) { ASSERT(rb.restype == RT3DPOINT); 阅读全文
posted @ 2020-03-01 22:43
中国膜结构网mjgou
阅读(371)
评论(0)
推荐(0)
摘要:
CWnd* pWnd = acedGetAcadDockCmdLine()->GetParent()->GetParent()->GetParent();if(pWnd != NULL){CControlBar* pControlBar = static_cast<CControlBar*>(pWn 阅读全文
posted @ 2020-03-01 22:41
中国膜结构网mjgou
阅读(369)
评论(0)
推荐(0)
摘要:
CMapSegType2IdAry::const_iterator iter; // 现在组 未保存iter = m_mapSeg2Groups.begin();for (iter; iter != m_mapSeg2Groups.end(); ++iter){const AcDbObjectIdA 阅读全文
posted @ 2020-03-01 22:40
中国膜结构网mjgou
阅读(341)
评论(0)
推荐(0)
摘要:
1.使用string必须添加头文件 #include"string"using namespace std; 2.使用CString必须添加头文件(在非MFC工程中) #include"afx.h"注意:当出现#error : Building MFC application with /MD[d] 阅读全文
posted @ 2020-03-01 22:37
中国膜结构网mjgou
阅读(146)
评论(0)
推荐(0)
摘要:
导出图层的实现: static void qxzyOperateLayer_ExportLayer(void) { CStdioFile f; CFileException e; char *pFileName = "C:\\layers.txt"; if(!f.Open((LPCTSTR)pFil 阅读全文
posted @ 2020-03-01 22:36
中国膜结构网mjgou
阅读(404)
评论(0)
推荐(0)
摘要:
1、创建一个工具类CTool。 Tool.h: static ads_real GetWidth();static int GetColorIndex(); Tool.cppads_real CTool::GetWidth(){ ads_real width = 0; if(acedGetReal( 阅读全文
posted @ 2020-03-01 22:35
中国膜结构网mjgou
阅读(558)
评论(0)
推荐(0)
摘要:
ObjectArx中实现文件选择的代码如下: static void qxzyGetFileD_SelectFile(void) { // Add your code for command qxzyGetFileD._SelectFile here const ACHAR* title = L"选 阅读全文
posted @ 2020-03-01 22:33
中国膜结构网mjgou
阅读(738)
评论(0)
推荐(0)
摘要:
// // acrxEntryPoint.h// #include "StdAfx.h"#include "resource.h"#include "dbsymtb.h" // #define szRDS _RXST("qxzy") // // ObjectARX EntryPointclass C 阅读全文
posted @ 2020-03-01 22:31
中国膜结构网mjgou
阅读(366)
评论(0)
推荐(0)
摘要:
实现代码: static void qxzyAddDimStyle_AddDimStyle(void) { ACHAR styleName[50]; if(acedGetString(Adesk::kFalse, _T("请输入样式名称:"), styleName) != RTNORM) { ret 阅读全文
posted @ 2020-03-01 22:30
中国膜结构网mjgou
阅读(492)
评论(0)
推荐(0)

浙公网安备 33010602011771号