摘要: 以下是二段代码:功能是获得当前所有图层的IDint CLayerOperate::GetAllLayerIds(){ LayerIds.removeAll(); AcDbLayerTable *pLT; acdbHostApplicationServices()->workingDatabase()->getLayerTable(pLT,AcDb::kForRead); AcDbLayerTableIterator *pLTI; AcDbObjectId idTemp; pLT->newIterator(pLTI); for (pLTI->start(... 阅读全文
posted @ 2012-11-19 21:05 游天居士 阅读(1373) 评论(0) 推荐(0) 编辑
摘要: 近来学习VS2005+arx2008 开发CAD。最到一个问题就是ObjectARX MFC Class Wizard 向导用不了,重装过CAD和向导也不能解决问题。后来知道问题出在IE上。是IE的版本太高。以下是解决办法。解压后运行的文件。http://files.cnblogs.com/happy123/IE8AddZone.rar下面之个是源码,修改注册表http://files.cnblogs.com/happy123/IE8AddZone%E6%BA%90%E4%BB%A3%E7%A0%81.rar 阅读全文
posted @ 2012-11-19 20:42 游天居士 阅读(461) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 转换bmp到Icon // 游天居士到此一游 /// </summary> /// <param name="bmpFileName">BMP文件名</param> /// <returns></returns> private Icon BmpToIcon(string bmpFileName) { // 得到当前程序的目录 string strFullFileName = mBmpFilePath + "/" ... 阅读全文
posted @ 2012-11-12 10:08 游天居士 阅读(373) 评论(0) 推荐(0) 编辑
摘要: private: static AcDbObjectIdArray secectScreen() { ads_name ssname; AcDbObjectIdArray idsSelected = NULL; if (acedSSGet(NULL,NULL,NULL,NULL,ssname) != RTNORM) { acedSSFree(ssname); return NULL; } long nSelectedLength; ads_n... 阅读全文
posted @ 2012-11-12 09:59 游天居士 阅读(561) 评论(0) 推荐(0) 编辑
摘要: C++有BeginRightClick反应器。但是arx.net里没有相应的事件。我们只能添加Com得到这个事件。 AcadApplication acAppCom; // Set the global variable to hold a reference to the application and // register the BeginFileDrop COM event acAppCom = Application.AcadApplication as AcadApplication; ... 阅读全文
posted @ 2012-10-20 09:52 游天居士 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 安装vs2002失败 frontpage如果即使个别的安装获得成功,Windows 组件更新仍继续报告发生故障,则可以跳过 Windows 组件更新。但是请注意,只有当安装了所有必需的组件时才建议这样做。如果不安装这些组件,Visual Studio .NET 将不能正常工作。游天居士到此一游跳过 Windows 组件更新插入 Visual Studio .NET CD1 或 DVD。关闭由自动运行启动的所有程序。选择“开始”菜单,然后选择“运行”,再键入下列内容:n:\setup\Setup.exe /NO_BSLN_CHECK例如:D:\setup\setup.exe /NO_BSLN_C 阅读全文
posted @ 2012-10-20 00:25 游天居士 阅读(177) 评论(0) 推荐(0) 编辑