Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assigning key shortcut to running script

Status
Not open for further replies.

n3l3

Mechanical
Dec 28, 2010
69
0
0
ES
Hi All,

Does anybody know how to run a script from CAE just pressign an assigned shortcut?

thx a lot!!
 
Replies continue below

Recommended for you

Hello,

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
 
Hi all

Thanks for the idea akabarten, i am going to try it.

IceBreakerSours can you assign a macro to a keyboard shortcut?

thanks!
 
Well, I must say that what I am trying to do is to see "Envelope" categorie in section point results.

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

 
Hi, here the solution to my last question, i just had to add previously:

from abaqus import *
from abaqusConstants import *
from caeModules import *
from driverUtils import executeOnCaeStartup

thanks all
 
Status
Not open for further replies.
Back
Top