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

yang686526 2009-05-04 05:30 PM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 11:08 AM.