查看单个帖子
旧 2009-05-05, 10:58 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】finding xrefs using oddbxrefgraph

finding xrefs using oddbxrefgraph
finding xrefs using oddbxrefgraph
if i have an acad drawing with xrefs with absolute paths, and these path's doest'n exist on the system running the parser,
the following code doesn't return any xrefs.
all xrefs are in the same directory as the root file.
i copied the code from the odamfc app.
is this by design or is it a bug?
thanks!
/jonas
void trace(oddbxrefgraphnode* pnode )
{
odstring sfilename;
if(pnode->owner()->rootnode() !=pnode )
{
sfilename = getfilename(pnode);
}
else
{
sfilename = "current";
}
atltrace( _t("%d\t%s\n"), l, sfilename.c_str() );
int n = pnode->numout();
for(int i=0; i<n; ++i)
{
trace((oddbxrefgraphnode*)pnode->out(i );
}
}
void testxrefs( oddbdatabaseptr pdb )
{
oddbxrefgraph res;
oddbxrefgraph::getfrom( pdb, res);
trace( res.xrefnode(0),0 );
}
it's only with r14 drawings i see this
it's acad r14 drawings and if i iterate through the blocks all
the blocks return "oddb::kxrfunreferenced"
if( pblock->isfromexternalreference() )
{
if( pblock->xrefstatus() == oddb::kxrfunreferenced )
{
// r14 always return unreferenced
}
}
it's only with r14 drawings i see this
it's acad r14 drawings and if i iterate through the blocks all
the blocks return "oddb::kxrfunreferenced"
if( pblock->isfromexternalreference() )
{
if( pblock->xrefstatus() == oddb::kxrfunreferenced )
{
// r14 always return unreferenced
}
}
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)