高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】missing reference file info
missing reference file info
missing reference file info
try to load reference file names from a dwg file (attached hw-201-a610_missingxrefs.dwg) using the following code (linked with dwgdirect library v2.7.1)
m_pdb = m_svcs.readfile(strftoprocess, false, false, oda::ksharedenyno);
oddbxrefgraph::getfrom(m_pdb, m_graph);
n = m_graph.numnodes();
for(int i=0; i<n; ++i)
{
oddbxrefgraphnode* pnode = m_graph.xrefnode(i);
if(pnode!=m_graph.rootnode())
{
oddbblocktablerecordptr pxrefblock =
pnode->blockid().safeopenobject(oddb::kforwrite);
// fullfilename
*temp = '\0';
strcpy(temp, (const char *)pxrefblock->pathname());
}
...
}
results:
- missing those with file name *903*.dwg and *904*.dwg.
- but after save as it to another file (attached hw-201-a610.dwg) using autocad, i can get all file names using same code.
attached files
any one at all on this issue?
any one at all on this issue?
|