Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Abaqus Wiresets using Python

Status
Not open for further replies.

Mahendra Singh

Mechanical
May 5, 2020
3
0
0
US
Hello there

I have implemented a number of connector WirePolylines using Python scripting. I intend to a create Set out of these wire features and then do a connector assignment for this wireset. I am finding it difficult to capture all these freshly created (wire)edges via Python scripting as .getSequenceFromMask() is confusing. Is there any way to select all wire edges which I just created and put them in a set?
The slower method of looping the bulk of code for
[ wire creation - defining wire set using .getSequenceFromMask() for each wire - assigning connector section]
for each wire does work but I wanted to do it in one go.

Any help would be highly appreciated.

Regards
 
Replies continue below

Recommended for you

Two tips:

1. These commands switch the reporting to the index method
session.journalOptions.replayGeometry
session.journalOptions.setValues(replayGeometry=INDEX)


2. You can assign the constructor-method of the wire to a variable an then use the variable later.
Regular command from A/CAE:
a.WirePolyLine(points=((r11[7], r11[6]), ), mergeType=IMPRINT, meshable=OFF)
Alternative command example:
mywire = a.WirePolyLine(points=((r11[7], r11[6]), ), mergeType=IMPRINT, meshable=OFF)
 
Status
Not open for further replies.
Back
Top