几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】getgeomextents of oddbbody (http://www.dimcax.com/hust/showthread.php?t=16391)

yang686526 2009-05-05 11:22 AM

【转帖】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


所有的时间均为北京时间。 现在的时间是 11:37 PM.