创建新图形文档,并在新图形文档中绘制一个圆,结果却在原来的文档中绘制,怎么回事?
static void CreateNewDocNewDoc(void){
// Add your code for command CreateNewDoc.NewDoc here
TCHAR* templateDocName=_T("acadiso.dwt");
acDocManager->executeInApplicationContext(CreateDoc,(void*)templateDocName);
AcApDocument* pCurDoc=acDocManager->mdiActiveDocument();
acDocManager->setCurDocument(pCurDoc);
acDocManager->lockDocument(pCurDoc);
AcDbDatabase* pDb=pCurDoc->database();
CreateCircle(pDb,AcGePoint3d(200,200,0),100);
acDocManager->unlockDocument(pCurDoc);
}
运行结果却是在原始的文档中创建了图形,而不是在新建的文档中创建图形,高手们帮帮忙吧。
页:
[1]