几何尺寸与公差论坛------致力于产品几何量公差标准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 to read arbitrary group codes values from an entity 9300 (http://www.dimcax.com/hust/showthread.php?t=16742)

yang686526 2009-05-06 03:04 PM

【转帖】how to read arbitrary group codes values from an entity 9300
 
how to read arbitrary group codes values from an entity (300
how to read arbitrary group codes values from an entity (300-309 specifically)
the dxf reference that i have mentions common group code value types in which 300-309 are shown as 'arbitrary text string' .
if i want to read there group code values from an entity that contained them, how would i do so?
the information does not seem to be available from the xdata or extension dictionary which both come up empty.
example entity:
0
lwpolyline
5
f00d
300
123 <<-- want to read these string values
301
456 <<--
302
789 <<--
100
acdbentity
100
acdbpolyline
8
mylayer
...
perhaps this is dead simple but i have not figured it out yet. any help would be appreciated.
the example you provided do not match dxf specification. extra (custom defined) data can be attached to an object only in 2 ways: xdata and xdictionary.
"non-standard" group_code-value pairs placed in arbitrary locations at least will be ignored by both dd and autocad. or even prevent file from loading.
sergey slezkin
thank you. we will try to move toward xdata or xdictionary storage.


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