获取和修改摘要信息
static void zffObjectARX采用MyCommand15(void){
AcDbDatabase* pDb=acdbHostApplicationServices()->workingDatabase();
AcDbDatabaseSummaryInfo* pSum=NULL;
Acad::ErrorStatus es=acdbGetSummaryInfo(pDb,pSum);
ACHAR* title;
pSum->getTitle(title);
acutPrintf(采用T("\n图形当前摘要信息标题为:%s"),title);
pSum->setTitle(采用T("测试AcDbDatabaseSummaryInfo"));
es=acdbPutSummaryInfo(pSum,pDb);
pSum->getTitle(title);
acutPrintf(采用T("\n改变后的摘要信息标题为:%s"),title);
}
页:
[1]