Apr-16-2019, 01:16 PM
Hi everyone!
I'm mew to Python and I'm trying to write a file with Information I get from a finite element mesh in Ansa. For that I use the Ansa python scripts.
I have a file
I wrote that
Would someone know how to do that?
Thanks in advance
Manon
I'm mew to Python and I'm trying to write a file with Information I get from a finite element mesh in Ansa. For that I use the Ansa python scripts.
I have a file
fileName="essai_tetra" file=open(fileName+'.mail','w')And I have a list of element IDs. I would like to write 9 IDs per line but I really don't know how to do that.
I wrote that
for b in range(len(set_elems_ids)): file.write("E%d\n" % list(set_elems_ids)[b])But then I have one ID per line and I don't know how to get 9.
Would someone know how to do that?
Thanks in advance
Manon