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

yang686526 2009-05-06 11:03 PM

【转帖】problem vectorizing oddbregion
 
problem vectorizing oddbregion
problem vectorizing oddbregion
hi,
i am using dd 1.13.02.
i have a dll which statically links to the dd libs. the dll is then loaded/used by the main application.
i can vectorize all entities except oddbregion. i have written:
quote:
odrx_declare_static_module_entry_point(modelermodu le);
odrx_begin_static_module_map()
odrx_define_static_application("modelergeometry", modelermodule)
odrx_end_static_module_map()
in one of my cpp files and called:
quote:
odrx_init_static_module_map();
just after odinitialize().
..but the oddbregion entities are not vectorized. i can see the draw() function being called for them though.
the odvectorize example calls odrx_init_static_module_map(); before odinitialize() while the dwgdirect help file says that
quote:
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 after odinitialize,
i tried both..but it still didn't work. i cannot reproduce the problem with the odvectorize sample though.
01. do i have to do something special to initialize modelergeometry library when the libs are statically linked to a dll??
02. how can i know if the modeleregeometry.lib has been initialized properly?
thanks
alex


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