在dbx中无法得到对modelspace的迭代器,不知道为什么
紧急求救!关于DBX中的BlocktablRecord的迭代器问题,有代码<BR>AcDbDatabase Db(Adesk::kFalse);<BR> Acad::ErrorStatus err;<BR> err = Db.readDwgFile((const char*)szProjDbPath,_SH_DENYNO,Adesk::kFalse);<BR> AcDbBlockTable *pBlockTable = NULL ;<BR> err = Db.getSymbolTable(pBlockTable, AcDb::kForRead);<P></P>
<P></P>
<P> AcDbBlockTableRecord *pBlockTableRecord = NULL;<BR> err = pBlockTable->getAt(ACDB_MODEL_SPACE, pBlockTableRecord,<BR> AcDb::kForRead);<BR> pBlockTable->close();<BR> AcDbBlockTableRecordIterator* pIterator = NULL;<BR> err = pBlockTableRecord->newIterator(pIterator,true,false);</P>
<P>为何上述代码在arx工程中执行的不错,而在dbx中就挂了??告诉我是createfailed(最后一句) 请大侠帮个忙拉</P>
<P>小弟谢了!!!</P>
页:
[1]