Hi,
I am trying to automate the process of accessing the Kernel CLI or Menu Bar in Abaqus ( For various concerns, I want the reason unmentioned)
I was able to deduce the required commands but it is failing to perform, if run from the Abaqus PDE.
This is the code :
from abaqus import *
from abaqusConstants import *
import __main__
def Macro1():
import section
import regionToolset
import displayGroupMdbToolset as dgm
import part
import material
import assembly
import step
import interaction
import load
import mesh
import optimization
import job
import sketch
import visualization
import xyPlot
import displayGroupOdbToolset as dgo
import connectorBehavior
#To give the command in Kernel CLI
cliCommand("""execfile('C:\\\\Users\\\\Me\\\\Desktop\\\\Script.py')""")
#To access the Menu Bar for running the script
selectMenuItem('File Menu + Run Script')
I gave only one command at a time. I have included both here just for the convenience.
Although I would prefer the CLI command because, I can specify the script there and avoid further selection steps.
But I want to know why, the above commands are failing. When I execute the script from Abaqus PDE, the Abaqus prompts (yellow blink) in the task bar, and if I select it, There is no change or the popping up of sub forms in the Abaqus. The status is not even shown in the CLI, whether it has started or failed.
If this is not the right forum for clarification in automation please let me know where I can get this resolved.
Even a suggestion of the approach will be welcomed.