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

accessing autocad map object data
accessing autocad map object data
hello
i have searched the forum and have come to the conclusion that dwgdirect does not support an easy way of accessing map object tables?
andrew
see
sergey slezkin
thank you. i will have a look at the examples of making custom objects. i am still a little confused because these are normal entities with associated map object table data and i don't see how this would work.
it seems common to be to want to show map object data .
i will look.
andrew
what do you mean by "normal" entities and "associated map object table data "?
i suppose you meant autocad map product (desktop) objects.
sergey slezkin
yes, i am using autocad map. the data was read in from shp files and i now have 3d polyline entities and if i use a program called geotools i can easily list the autocad map object data associated with the entity.
i want to do it myself.
i think you know to what i am referring.
andrew
could you attach a simple example (dwg) with a description what data is attached to the entities?
sergey slezkin
here you are.
when i run the geotools command it shows this:
command: gt_od_list
list object table data in text mode.
select object to list data:
table name: 761, # of object data records = 1
----record # 1
field value type
---------------------------------------------------------------------
nattr 900 character
note that i had to "include map data when blocking out" otherwise this detail would get lost in the dwg.
andrew
attached files (44.2 kb, 2 views)

in case you need data attached to polylines (oddb2dpolylines in model space):
they have extension dictionary holding objects of type cirdobjrecord.
if you need data stored in it you need implement this object.
sergey slezkin
there are samples of using this cirdobjrecord object?
andrew
this object is not implemented in dd.
example of implementing a custom object is in examples/excustobjs.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)