×
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

using Abaqus python from ABAQUS command line

using Abaqus python from ABAQUS command line

using Abaqus python from ABAQUS command line

(OP)
Hello all,

I am new to scripting. I am trying to get the data along a path and I tried the explanation in

http://www.eng-tips.com/viewthread.cfm?qid=154627&page=1

The problem is in command line python does not recognize the "session" and gives me the following error:

name 'session' is not defined.

but if I copy and paste the same script in the abaqus cae then I would not get this error. I think one reason might be that we can not use "import visualization" in CLI. Is there any substitute for visualization?
Can you please help me and let me know if there is a way to fix that in CLI.

Thanks

RE: using Abaqus python from ABAQUS command line

Are you running the script inside /CAE ? Abaqus Python scripts are not supposed to be run with the public Python distribution. Abaqus comes with its own Python compiler version which includes additional modules.

RE: using Abaqus python from ABAQUS command line

(OP)
Thanks a lot.
I am running ABAQUS python from the ABAQUS cmd, and it give me the above error. If I run this from CAE I won't get the error.
Are you suggesting that I can not use ABAQUS PYTHON from ABAQUS cmd?

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