几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】missing reference file info (http://www.dimcax.com/hust/showthread.php?t=17229)

yang686526 2009-05-06 05:56 PM

【转帖】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.