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

yang686526 2009-05-05 10:56 AM

【转帖】findfile90
 
findfile()
findfile()
where does od?db?host?app?services::findfile() search for files? i do realize it can be overridden.
if the file is absent at specified location oddbhostappservices::findfile() searches it in current application folder,
in the folder where drawing (dwg) resides,
in the path specified by "acad" environment variable,
on windows platform in /fonts subfolder of windows directory.
sergey slezkin
quote:
originally posted by sergey slezkin
if the file is absent at specified location oddbhostappservices::findfile() searches it in current application folder,
in the folder where drawing (dwg) resides,
in the path specified by "acad" environment variable,
on windows platform in /fonts subfolder of windows directory.
this from autocad's objectarx documentation:
if fname is qualified by including a drive or directory prefix (for example, "d:test.exp"), acedfindfile() searches only that disk or directory. otherwise, acedfindfile() searches for fname according to the current autocad library path, which consists of the following directories, in order:
the current directory
the directory that contains the current drawing file
the directories named by the acad environment variable (if this variable has been specified)
the directory that contains the autocad program files


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