Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
May 5, 2020
Messages
3
Location
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
 
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.

Part and Inventory Search

Sponsor

Back
Top