摘要:
转载自网络一在ARX中禁用AutoCAD的某个命令以LINE命令为例,在程序中加入下面的一句即可禁用LINE命令:acedCommand(RTSTR, "undefine", RTSTR, "line", RTNONE);下面的语句则可恢复LINE命令的定义:acedCommand(RTSTR, "redefine", RTSTR, "line", RTNONE);二在对话框中预览DWG文件//使用acdbDisplayPreviewFromDwg函数,具体的方法为:char fileName[100];strcp 阅读全文
posted @ 2012-08-10 15:40
翔麟
阅读(2986)
评论(0)
推荐(0)
摘要:
转载自网络FindingtheActiveViewportsinModelSpace 1 // Set some viewport information. 2 AcDbViewportTable* pViewportTable; 3 if (db.getViewportTable(pViewportTable, AcDb::kForRead) 4 == Acad::eOk) 5 { 6 // Find the first viewport and open it for write. 7 AcDbViewportTableRecord *pRecord; ... 阅读全文
posted @ 2012-08-10 15:16
翔麟
阅读(1266)
评论(0)
推荐(0)
摘要:
1 #include <locale.h>2 3 4 setlocale( LC_CTYPE, ("chs"));//添加这个5 CStdioFile flie;6 flie.Open(_T("a.txt"),CStdioFile::modeWrite | CStdioFile::modeCreate);7 CString str = _T("测试"); 8 flie.WriteString(str);9 flie.Close(); 阅读全文
posted @ 2012-08-10 15:01
翔麟
阅读(332)
评论(0)
推荐(0)

浙公网安备 33010602011771号