Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Abaqus: Part imported from python code doesn't update in Abaqus

Status
Not open for further replies.

Mohammed Nagy

Mechanical
Nov 12, 2019
13
Hello all,

I'm working on optimizing the performance of a soft actuator. I have a part in my FE model which is made by running a python script. The problem is if I change a parameter (angle or length) in the python code it doesn't update in the Abaqus part automatically, I have to delete the part and re-run the python script.
Is there a way to solve this problem?
 
Replies continue below

Recommended for you

After the changes you should regenerate the part. In scripting this can be done using regenerate()
 
The python script draws the part in abaqus and that's it. It is no longer connected to the part and any changes i make in the python script don't reflect in the part in abaqus. I attached a picture from my abaqus part and from the python script. I want to edit the length and the angle and see them update in abaqus.
a1_vsp9cy.png
a2_n3izlz.png
a3_swegs7.png
 
Try "Really Simple GUI Dialog Builder" available under Plug-ins --> Abaqus --> RSG Dialog Builder. It will allow you to create a dialog box where you can change dimensions of your part and then generate or update it without changing the script itself.
 
I did this but now the parameters don't exist to be edited in the .inp file they only exist in the dialog box. How to make them appear in the .inp file?
 
Changes done to the part will appear in the input file when you write it using CAE (Job —> Write Input). But if you are talking about parametric input then it can be only used directly in the input files. Abaqus/CAE doesn’t support this functionality.
 
Abaqus does not care about your script after it's execution. In the last for-loop you create a wire. That is the feature Abaqus knows. So you can create a script to modify this feature or you run the existing script to create the part from scratch again. What is so hard to understand about that? It's the same when you create a text file with a script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor