几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how xrefstatus90 is determined (http://www.dimcax.com/hust/showthread.php?t=16805)

yang686526 2009-05-06 03:26 PM

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


所有的时间均为北京时间。 现在的时间是 01:49 AM.