Let’s break down the following scenario:
“Using ACT scripting, I would like to create a contact tool pressure result for all contacts with names ending by “YES”. Then I would like to export the contact pressure results to a text file, for each time step.”
The following script can be adapted to do this:
- Define path to where results will be exported:
- In connections, find children that are contacts and create a list of these contact regions:
- From this list, create another list for contacts which name end by “YES”:
- For contacts in myContactList, create a contact tool / pressure result:
- Loop on all time steps and export results: