The code in the journal is executed line by line. So until
is executed fully, it will NOT go to
for a better understanding of this, remove the sendcommand from your code and try updating the model. You will see the mesh of the first system is generated first (obviously it won't solve after that due to lack of BCs) and the mesh of the second system is generated AFTER the generation of the first system. You can add print() messages in your code to verify that.
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum