心向天空101 发表于 2008-7-1 11:09

在VC调用ansys时遇到的情况,希望各位大侠帮忙

用VC递归调用ansys是出现这种情况,不能运行,但是单独打开ansys能运行,这是怎么一回事呢?
*** ERROR ***
Another ANSYS job with the same job name (file) is already running in this
directory or the file.lock file has not been deleted from an abnormally
terminated ANSYS run.To disable this check, set the ANSYS_LOCK environment
variable to OFF.

16443 发表于 2008-7-1 12:00

回复 楼主 的帖子

这个提示已经很明确了,由于上次运行错误等原因导致生成file.lock文件,直接用命令启动时侯会有错误。解决办法:
1、the file.lock file has not been deleted from an abnormally terminated ANSYS run
2、set the ANSYS_LOCK environment variable to OFF

xuruikl 发表于 2008-7-1 14:21

使用默认的文件名是个很不好的习惯
重新开始一个项目最好给该文件命一个简单容易理解的文件名
这样以后也方便查阅

心向天空101 发表于 2008-7-2 08:38

解决

在设置环境变量为off
然后重启动即可
环境变量的设置为: 我的电脑》属性》高级》环境变量》新建》ansys_lock,值为off
重启动
我自己摸索的
页: [1]
查看完整版本: 在VC调用ansys时遇到的情况,希望各位大侠帮忙