查看单个帖子
旧 2009-05-06, 03:06 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】how to realize the function of adreadproxydatastring in c=

how to realize the function of "adreadproxydatastring" in c+
how to realize the function of "adreadproxydatastring" in c++?
adreadproxydatastring
summary
short adreadproxydatastring (char *a);
description
reads a proxy (object or entity) string into the buffer pointed to by a.
return value
returns 1 on success, 0 on failure. on failure, aderror() should be checked for an indication of the cause of the failure.
given the pointer to a acdbproxyentity object, how can i get the value of its string atrributes, like the function of "adreadproxydatastring" in c.
thanks!!!!
to get access to proxy entity (object) data you need to know its data format and implement your custom class representing the entity.
see
sergey slezkin
read binary data from proxy
n our application i need to read binary data from oddbproxyentity, so that it can be stored in our database (not oda database), and so that we can later write it our to dwg/dxf.
(in other words, we don't want to handle proxy entity, just store it's data for round-trip back to dwg/dxf).
i don't see how i can use custom entity class as in excustobjs to do what i want.
is there any other way i can extract binary data from oddbproxyentity after it has been loaded form file?
thanks
you can use oddbentget() / oddbentmod() for that purpose (see the bottom of dbobject.h)
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)