多文档模式下,怎么用objectARX打开dwg
多文档模式下,怎么用objectARX打开dwg文件啊,网上搜了一通,不管用。void OpenDoc( void *pData)
{
AcApDocument* pDoc = acDocManager->curDocument();
if (acDocManager->isApplicationContext())
{
acDocManager->appContextOpenDocument((const char *)pData);
}
else
{
acutPrintf("\nERROR To Open Doc!\n");
}
}
// This is command 'Test_Open'
void HedTest_Open()
{
// 直接打开文件
static char pData[] = "D:\\AutoCAD图形\\Test.dwg";
acDocManager->executeInApplicationContext(OpenDoc, (void *)pData);
} :victory::Q:)
页:
[1]