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

yang686526 2009-05-06 11:19 PM

【转帖】problem with handles specification
 
problem with handles specification
problem with handles specification
hi,
i have been working in a java library for reading dwg files. the part for reading is finished but i'm having problems with the management of some dwg objects.
now i'm trying to obtain layer names from layer handles of the objects but i'm having problems with these layer handles.
i have found some documentation about this in the opendwg specification. if the layer handle code is 0x8, the layer handle will be the layer handle of
the objects that has a handle = reference handle - 1, and if the layer
handle code is 0xc, the layer handle will be the layer handle of the
object that has a handle = reference handle - layer handle. this
works, but when code is 0x4, there isn't any handle layer. the
specification don't tell anything about this case and i don't know how
to implement this.
any idea about this?
thanks in advance!


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