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

adreadproxydata... ==> dwgdirect???
adreadproxydata... ==> dwgdirect???
i have to read proxy objects and extract data using whatever substitutes the adreadproxydata... functions in dwgdirect. just i cannot find them - neither in the documentation nor in the header files. can anyone help???
tibor
in order to get access to proxy object or proxy entity data you need to implement your custom class derived from oddbobject or oddbentity. see examplecustobject.h and examplecustobject.cpp from odamfcapp sample.
during file loading your function dwginfields (or dxfinfields) will be called. (it depends on proxy object data format - not on file type.) you need to read in the data and store it in your object.
to save file back you also need to implement dwgoutfields/dxfoutfields.
sergey slezkin
thank you, sergey. i'll try it and then i'll tell you how i fared...
tibor

hi sergey,
it works, thanks to calling my attention to the example
tibor
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)