查看单个帖子
旧 2009-05-06, 11:03 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)