查看单个帖子
旧 2009-05-06, 03:26 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】how xrefstatus90 is determined

how xrefstatus() is determined ?
how xrefstatus() is determined ?
hi,
how does dwgdirect determine xrefstatus ? when i open the attached file 'xref.dwg', which has one xref, 'lwp.dwg', i get kxrfunresolved from xrefstatus for 'lwp''s block.
when i first opened 'xref.dwg' to odamfcapp, it showed 4 for code 70 (screenshot 'first.gif'). after i expanded <*modelspace> and clicked on <acdbblockreference> under it and then back to <lwp>'s <acdbblockreference>, it showed 36 for code 70 (screenshot 'second.gif') ???
jukkas
attached images
after you open a file containing xrefs they are not loaded and where were no attempt to load them.
xref blocks can be loaded "manually" by xref manager functions or automatically if for example block reference needs to be vectorized (via worlddraw) or its extents are requested.
after attemt to load the xref its status would be resolved or filenotfound.
btw, at the moment you click block reference in odamfcapp the xref gets loaded. if you push f5 the contents of tree control will be updated and you'll see non-empty contents of xref block.
sergey slezkin
thanks sergey,
this means that i can get kxrfunresolved from xrefstatus() even if the xref exists but if dwgdirect has not made an attempt to load it .
what if xref's status is "unresolved" in the original dwg ? is there any way to
tell which is the case: dwgdirect has not tried to load the xref or it was originally unresolved ? there is a difference which can be important.
jukkas
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)