![]() |
【转帖】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? |
所有的时间均为北京时间。 现在的时间是 08:52 PM. |