×
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

How running with noGUI and a .py file with arguments ?

How running with noGUI and a .py file with arguments ?

How running with noGUI and a .py file with arguments ?

(OP)
Hi all,

I'd like to run Abaqus without GUI (Graphical User Interface) but I have a python file with arguments required.
 
The following command line doesn't work :

abaqus viewer noGUI=writeDisp.py /home/workspace/test.odb

(writeDisp has a path as argument)

Does anybody know how using the noGUI option ? I have few difficulties to understand the help provided by Abaqus (something with '--' ?).

Thanks

RE: How running with noGUI and a .py file with arguments ?

Hi Alex,
I think the command is only:
abaqus viewer noGUI=writeDisp.py
without specifying the Odb file

In the Python script you should start by opening the odb file with the following command:
myOdb = visualization.openOdb(path='test.odb')


Hope it'll help

RGX
 

RE: How running with noGUI and a .py file with arguments ?

(OP)
Thanks RGX for your answer,

Indeed, I could do that. But in fact, this command is included in a loop.

This is something like :

for myodb in ODBbase:
    abaqus viewer noGUI=writeDisp.py myodb
end

(This is just ti illustrate)

So the question is, how giving an argument to my python file...

Thanks again.
rgds

RE: How running with noGUI and a .py file with arguments ?

have you tried using two dashes (e.g. --) followed by your args?

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