×
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

Creating a Name in Python for Abaqus

Creating a Name in Python for Abaqus

Creating a Name in Python for Abaqus

(OP)
When I run my program I would like to create names in the Model Space of Abaqus other than Part-1, Job-1 etc. If possible I would like them to be created based on inputs I add so I can always know what size plate is being run.

For example the generic file name is: p_l_w_t_dec_mat

*p=plate and t=thickness and those will stay the same
*mat would either be A36, A242, or A572 steel and I will make 3 scripts for the different materials so that does not need to change as well.

However, l,w, and dec will change.

say l=20
w=4
dec=0375 (0375 equates to a 3/8 in. plate)

I would want the final results to read
p_20_4_t_0375_A36 and then I would change the p value to s, j, o, etc when it comes to the section, job, output, etc.

Because the input values will change I want the name to automatically update when I change l,w, dec.

THANKS!

Therese

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