![]() |
【转帖】ecannotexplodeentity for region
ecannotexplodeentity for region
ecannotexplodeentity for region are there some regions that can be exploded and some that cannot? i am getting the return value ecannotexplodeentity when exploding a region. attached files maybe modelergeometry module is missing in your application? odamfcapp seems to explode both regions in model space from your file correctly. sergey slezkin not that that was not the problem. i will just ignore regions for this release. odamfcapp worked for me. i'm having the same problem. did you find a solution?? does it happen with some specific region or with all of them? is odamfcapp able to explode your problem region? sergey slezkin i have only tried with a couple of them and they all fail i my app. in odamfcapp everything is working properly. if some operation with an acis object works ok in odamfcapp and fails in client application possible reason is missing modelergeometry module. such operation can be: explode, saving to another file version, rendering, accesing data via brep interface. in dll version all you need is put modelergeometry.drx to the application folder. for static build the method of including modules is described in developer's guide/creating custom objects and applications: the following macros must be included into the programm: code: #ifndef _toolkit_in_dll_ // declare the entry point function for the custom module (one for each module). odrx_declare_static_module_entry_point(modelemodule); odrx_begin_static_module_map() // all modules should be listed here odrx_define_static_application("modelergeometry", modelermodule) odrx_end_static_module_map() #endif after the static module map has been declared, the dwgdirect client application should call the odrx_init_static_module_map macro once to initialize the static module map. this should be done before odinitialize, for example: code: #ifndef _toolkit_in_dll_ odrx_init_static_module_map(); #endif odinitialize(this); see odwriteex or odamfcapp samples. sergey slezkin ecannotexplodeentity - regions i'm using multithreaded dynamic link with _toolkit_in_dll_ defined. i have added the modelergeometry.drx to my application directory but i am still getting the same error when 'odresult = pregion->explode(entityset);' is executed. i have searched the forum and it appears that adding the '.drx. file is all i have to do - is this correct ? do i have to link the modelergeometry library. to i have to specifically load it? odrxgetmodelergeometrycreatorservice() should return something if modeler module loaded. if it return something and you got ecannotexplodeentity, please, attach test file and i need to known used toolkit version also. odrxgetmodelergeometrycreatorservice() dear alexander, odrxgetmodelergeometrycreatorservice() returned nul. i found the solution to the problem - i didn't have all the required dll's required in my application folder. (acisbuilder.dll, acisrenderer.dll, and br.dll) thanks for your help. |
所有的时间均为北京时间。 现在的时间是 02:53 PM. |