|
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);
} |
|