几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】oddbfcfgetboundingpoints raises an exception (http://www.dimcax.com/hust/showthread.php?t=17533)

yang686526 2009-05-06 07:45 PM

【转帖】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::oneditfind()
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


所有的时间均为北京时间。 现在的时间是 06:08 AM.