几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】mac version where is adinit.dat and where should it be (http://www.dimcax.com/hust/showthread.php?t=17138)

yang686526 2009-05-06 05:24 PM

【转帖】mac version where is adinit.dat and where should it be
 
mac version : where is adinit.dat and where should it be
mac version : where is adinit.dat and where should it be
1) in the macintosh version of dwgdirect 1.14 , we could not find a copy af adinit.dat. where is it or from where should it be taken ?
2) once the macintosh client app is linked (aka bundelized) with xcode, where adinit.dat should be stored in the app bundle to be properly retrieved by inifile = svcs.findfile("adinit.dat") ?
3) do i understand well when i say that there is an implementation of "findfile" for the mac plateform in the class exsystemservices or exhostappservices, or should i provide one ?
thanks
jph
1. adinit.dat can be taken from odt (c toolkit)
2. adinit.dat should be properly located by svcs.findfile("adinit.dat"). for better performance you can specify full path.
3. default implementation exists. you can override it.
sergey slezkin
mac version - where to put adinit.dat in the app bundle ?
as you know, a macintosh application is a bundle, which is a special folder wich contains other folders , among which a "macos" folder and a "resources" folder himself containing localized resources.
the question is : in which of these folders should we put the adinit.dat file so that it can be found by the the standard findfile implementation ?
thanks
jph
findfile() typical search order is as follows:
-the filename itself.
-the current directory.
-the drawing directory (for shx font, image, and xref files).
-the directories listed in the acad environment variable.
-the windows fonts directory (only for ttf fonts on windows).
the most reliable and efficient way is to specify full path name for adinit.dat while initializing charmapper.
sergey slezkin


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