CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Pause macro execution (https://www.cfd-online.com/Forums/star-ccm/98851-pause-macro-execution.html)

ryancoe March 20, 2012 14:58

Pause macro execution
 
Does anyone know how to pause the execution of a macro? I know you can hit the (x) button, but this kills it entirely.

abdul099 March 21, 2012 04:28

Spontaneously I would put some Thread.sleep(x); statements at the point where you want the macro to pause and some if-clause to check when it should continue.
I don't think it's possible to pause it at an arbitrary position, but I really appreciate when I'm wrong!

rwryne March 21, 2012 07:29

Quote:

Originally Posted by ryancoe (Post 350499)
Does anyone know how to pause the execution of a macro? I know you can hit the (x) button, but this kills it entirely.

<removed to prevent spread of misinformation>

ryancoe March 26, 2012 14:14

Quote:

Originally Posted by rwryne (Post 350643)
There is a pause button in the CCM+ GUI, top left. It pauses after the current cmomand is executed,. If you are currently executing a .run() it wont pause until after that process.

I believe that is a pause in recording a macro?

rwryne March 26, 2012 14:19

Quote:

Originally Posted by ryancoe (Post 351571)
I believe that is a pause in recording a macro?


After review, you're right. Thanks for the correction.


All times are GMT -4. The time now is 15:48.