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