ACT Extension: How to write APDL code into different loadsteps of ds.dat
I started to script my own ACT extension for the fused deposition modeling (FDM) process. I need to activate (with EALIVE) many elements, each element at one timestep in a transient thermal simulation. I saw that an Additive Manufacturing Extension exists (similar to FDM but not the same), but only as binary file so i can't learn from it.
The .xml will execute the main Python script on solve. The Python script writes all APDL Commands into the ds.dat by "WriteLine" but I didn't find out which Commands in IronPython allow me to write lines into the different loadsteps in ds.dat. By adding APDL command snippets in the model tree I can select the timesteps, in which the snippet is written - but how can i do this directly?
And how can i select the convection surface elements best? I need to select all surface152 elements of one belonging solid90 element in order to bring everything alive at the same time.
Thank you very much for your help!