查看单个帖子
旧 2009-05-06, 03:04 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)