首页 > 代码库 > 获取和修改摘要信息

获取和修改摘要信息

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

获取和修改摘要信息