TA的每日心情 | 开心 昨天 06:36 |
---|
签到天数: 15 天 [LV.4]偶尔看看III
管理员
- 积分
- 1308
|
- static void ASDKwbTEST(void)
- {
- AcDbDatabase* pDb = curDoc()->database();
- assert(pDb);
- //get line type table
- AcDbLinetypeTable *pLTTable ;
- acdbOpenObject(pLTTable,pDb->linetypeTableId(),AcDb::kForRead);
- AcDbLinetypeTableRecord *pLTRecord = NULL ;
- AcDbObjectId objLTId ;
- //pLTTable->getAt(采用T("TRACKS"), objLTId) ;
- pLTTable->getAt(采用T("ZIGZAG"), objLTId) ;
- pLTTable->close();
- Acad::ErrorStatus es = acdbOpenObject((AcDbObject *&)pLTRecord, objLTId, AcDb::kForRead) ;
- if(es != Acad::eOk)
- {
- acutPrintf(采用T("ZIGZAG linetype not loaded"));
- return;
- }
- //iterate through the linetype
- int dashes = pLTRecord->numDashes();
- for(int c = 0; c < dashes; c++)
- {
- int shpnum = pLTRecord->shapeNumberAt(c) ;
- if(shpnum != 0)
- {
- AcDbTextStyleTableRecord *pTSRecord = NULL ;
- AcDbObjectId objTSId = pLTRecord->shapeStyleAt(c);
- pLTRecord->close();
- acdbOpenObject((AcDbObject*&)pTSRecord,objTSId,AcDb::kForRead);
- assert(pTSRecord);
- const ACHAR *pName ;
- Acad::ErrorStatus es = pTSRecord->fileName(pName);
- pTSRecord->close();
- acutPrintf(采用T("\nName of shape file = %s"),pName);
- }
- }
- }
复制代码 |
|