CAD_DAC 发表于 2005-7-30 21:59:00

在dbx中无法得到对modelspace的迭代器,不知道为什么

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