高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】duplicate 9and translated0 entities while reading a dwg
duplicate (and translated) entities while reading a dwg
duplicate (and translated) entities while reading a dwg
hi,
while reading a dwg my app generates two versions of the same drawing, one version translated a few meters over the other, like a ghost image. dwg viewer 3.0 renders correctly the file.
i'm using a modified version of the odreadex example.
i have already checked that my dump methods (oddbpolyline_dumper for example) are called just one time for every feature in the db (no error generating more than needed features).
any idea?
thanks,
david
if i understand you correctly - you are recieving multiple hits from the same entity (same handle) in your modified odreadex?
have gone back and compared with odreadex from our latest release? are you using dd 1.09?
hi walt,
my dump methods receives a oddbentity* pent, then i copy it as (in the oddbpolyline_dumper class):
oddbpolylineptr ppoly = pent;
both ppoly attributes (in each call) points to different memory locations. i have not checked pent pointer.
i'm using dwgdirect 1.09.
thanks,
david
hi walt,
the handles are different. i use:
pent->getdbhandle().ascii().c_str()
to print it. i look for two, of many, "duplicated" objects. for one object it returns 7069, for the other 10e25.
note that this problem only happens with an specific dwg. my app reads and renders ok other dwg and dxf.
fin attached a snapshot.
thanks,
david
attached images (3.0 kb, 9 views)
|