查看单个帖子
旧 2009-05-04, 05:30 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】cannot use modeler geometry on macos

cannot use modeler geometry on macos x
cannot use modeler geometry on macos x
hello,
we try to read/write breps from/to dwg files.
we using the same code compiled both on pc/win and macos/ub.
our code works fine on pc.
but we have problems on macos x since it does not work.
(we generate ub code using xcode 2.4)
- to read the brep, following code generate an exception on macos :
odbrbrep &brep = ...;
odbrebrepfacetraverser ftr;
ftr.setbrep(brep);
- to write the brep, we use odrxgetmodelergeometrycreatorservice(), which returns null on macos, so we cannot generate breps.
we had similar problems on pc because we did not place correctly the modelergeometry.drx module file.
but on macos, all libraries are static libraries. do we missing something ?
can someone help us ?
thank you in advance...
for statically linked configuration (it's not mac specific) you need to initialize static module map. see odwriteex.cpp for example - search for "modeler".
(in documentation it's described in "creating custom objects/applications")
sergey slezkin
thank you sergey, i initialized the modelergeometry module and it works now.
i have another problem: the chm documentation does not work on my pc.
(i have downloaded it yesterday). can you check if you have the problem too ?
thank you very much in advance.
maybe it's the same problem?
sergey slezkin
sorry, i did not search on the forum before.
yes, it's the same problem.
all is ok now.
thanks you very much for your help sergey.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)