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

yang686526 2009-05-04 03:32 PM

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


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