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

oddbfcf::getboundingpoints raises an exception
oddbfcf::getboundingpoints raises an exception
hello forum,
in your odamfcapp sample version 2.7.1, if you add the following piece of code at the end of cdwgview:neditfind()
code:
odgepoint3darray dwgpnts ;
oddbfcfptr fcf = oddbfcf::cast(targetid.safeopenobject(oddb::kforread)) ;
if(fcf.isnull() == false)
fcf->getboundingpoints(dwgpnts) ;run the odamfcapp sample, open the attached dwg, and launch the "edit|find" command for the handle 5f3, you will get an exception when calling getboundingpoints.
why ?
attached files
i entered cr 5663 for it: oddbfcf::getboundingpoints() crashes if the entity has null extents.
btw, members can enter defects directly to our bugzilla.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)