![]() |
【转帖】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. |