查看单个帖子
旧 2009-05-05, 11:22 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】getgeomextents of oddbbody

getgeomextents of oddbbody
getgeomextents of oddbbody
we use dd 1.14.1 and get access violation exception in getgeomextents method of oddbbody (exploded oddb3dsolid).
but odamfcapp return valid extents of oddb3dsolid and oddbbody.
i attach sample dwg and modified cpp file form odcopyex sample to reproduce error.
attached files
what is command line for copyex ?
quote:
originally posted by alexander rumyantsev
what is command line for copyex ?
d:\z_acad_templ\cs.dwg d:\z_acad_templ\new.dwg acad2004 dwg
change "d:\z_acad_templ" to valid path to sample file.
best regards,
ivan obraztsov
try next:
#if !defined (_toolkit_in_dll_) && defined ( enable_preview )
odrx_init_static_module_map();
#endif
to
#if !defined (_toolkit_in_dll_) /* && defined ( enable_preview )*/
odrx_init_static_module_map();
#endif
one more, i have found bug in dd. getgeomextents can execute exception some times, it can be fixed by
oddbentityptr pent = arr.getat(i);
pent->setpropertiesfrom(pentity); // this is new line
std(cout) << pent->isa()->name();
odgeextents3d ext;
nres = pent->getgeomextents(ext); // exception on this line
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)