×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Assigning key shortcut to running script

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!!

RE: Assigning key shortcut to running script

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

RE: Assigning key shortcut to running script

(OP)
Hi all

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

(OP)
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

RE: Assigning key shortcut to running script

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources