几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】利用com在arx中下面代码autocad (http://www.dimcax.com/hust/showthread.php?t=7186)

yang686526 2009-04-16 09:04 PM

【转帖】利用com在arx中下面代码autocad
 
利用com在arx中下面代码autocad
参考如下:
void opendwg( void *pdata)
{
acapdocument* pdoc = acdocmanager->curdocument();
if (acdocmanager->isapplicationcontext())
acdocmanager->appcontextopendocument((const tchar *)pdata);
else
acutprintf(l"\nunable to find new.dwg!\n");
}
// this is command 'opentemplate'
void opentemplate()
{
// 直接打开系统中存在的某个模板,如c:\\template\\new.dwg
static tchar pdata[] = _t("c:\\template\\new.dw");
acdocmanager->executeinapplicationcontext(opendwg, (void *)pdata);
}


所有的时间均为北京时间。 现在的时间是 05:32 PM.