Assigning key shortcut to running script
Assigning key shortcut to running script
(OP)
Hi All,
Does anybody know how to run a script from CAE just pressign an assigned shortcut?
thx a lot!!
Does anybody know how to run a script from CAE just pressign an assigned shortcut?
thx a lot!!





RE: Assigning key shortcut to running script
I am not sure is it the easiest way but you can add plug-in to run your script to Abaqus/CAE menu
and next map any shortcut to run it.
How to add plug-in see:
Abaqus/CAE User's Manual, Part VIII: Using plug-ins
Next add shortcut:
Tools -> Customize -> Functions -> Plug-ins
Regards,
Bartosz
RE: Assigning key shortcut to running script
Are you new to this forum? If so, please read these FAQ:
http://www.eng-tips.com/faqs.cfm?fid=376
http://www.eng-tips.com/faqs.cfm?fid=1083
RE: Assigning key shortcut to running script
Thanks for the idea akabarten, i am going to try it.
IceBreakerSours can you assign a macro to a keyboard shortcut?
thanks!
RE: Assigning key shortcut to running script
I tried to insert the following line in my ".py" init file ( a script I run at the start of CAE), but it does not work since there is no odb loaded (I guess).
session.viewports['Viewport: 1'].odbDisplay.basicOptions.setValues(
sectionResults=USE_ENVELOPE)
So what I am trying to do is to assign this code (script) to a keyboard shortcut in order to run it when the ODB is loaded.
thanks all
RE: Assigning key shortcut to running script
from abaqus import *
from abaqusConstants import *
from caeModules import *
from driverUtils import executeOnCaeStartup
thanks all