Monday, November 2, 2009

Abaqus Licence Caller

Hey Friends,
Are u Using remote abaqus license from ur institute/Company ?
Are u facing problem to get abaqus license from Institute/Company because its limited number ?
Are u looking for an automatic program which will open Abaqus CAE when licenses get available?


Then here is the solution!!

AbaqusCaller.py



## This is a simple script to call "abaqus cae". The AbaqusCaller.py Script
## will check the availability of licenses, if no licence available for some
## reason, the script will again call the 'abaqus cae' with in next given second
from os import system
from time import sleep, ctime
## her u can define sleeping time
sleeppingTime=5## 5 sec before trying the second attempt
##---------------------
count=1
print 'Attempting to call ABAQUS CAE at:',ctime().split()[3]
print ' Attempt No: ', count
a=system('abaqus cae')
while count<100000:
if a==1:
sleep(sleeppingTime)
print 'Attempting to call ABAQUS CAE at:',ctime().split()[3]
print ' Attempt No: ', count+1
a=system('abaqus cae')
count=count+1



AbaqusCaller.py will search for the license until u get a one and open Abaqus cae!!

Then,
1. Download the script from attachment
2. Place it at the folder where you want to open abaqus cae.
3. Double click on AbaqusCaller.py.
4. Hope u have already installed python compiler , if not follow the below link to install python
http://www.python.org/ftp/python/2.6.2/python-2.6.2.msi