CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > STAR-CCM+

Pause macro execution

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 20, 2012, 15:58
Default Pause macro execution
  #1
Member
 
Ryan Coe
Join Date: Jun 2010
Location: Albuquerque, NM
Posts: 98
Rep Power: 7
ryancoe is on a distinguished road
Does anyone know how to pause the execution of a macro? I know you can hit the (x) button, but this kills it entirely.
__________________
Ryan
ryancoe is offline   Reply With Quote

Old   March 21, 2012, 05:28
Default
  #2
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 637
Rep Power: 12
abdul099 is on a distinguished road
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!
abdul099 is offline   Reply With Quote

Old   March 21, 2012, 08:29
Default
  #3
Super Moderator
 
Ryne Whitehill
Join Date: Aug 2009
Posts: 313
Rep Power: 9
rwryne is on a distinguished road
Quote:
Originally Posted by ryancoe View Post
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>

Last edited by rwryne; March 26, 2012 at 14:20.
rwryne is offline   Reply With Quote

Old   March 26, 2012, 14:14
Default
  #4
Member
 
Ryan Coe
Join Date: Jun 2010
Location: Albuquerque, NM
Posts: 98
Rep Power: 7
ryancoe is on a distinguished road
Quote:
Originally Posted by rwryne View Post
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?
__________________
Ryan
ryancoe is offline   Reply With Quote

Old   March 26, 2012, 14:19
Default
  #5
Super Moderator
 
Ryne Whitehill
Join Date: Aug 2009
Posts: 313
Rep Power: 9
rwryne is on a distinguished road
Quote:
Originally Posted by ryancoe View Post
I believe that is a pause in recording a macro?

After review, you're right. Thanks for the correction.
rwryne is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Heat Exchanger not selecting (Please help!) zdeth FLUENT 2 September 11, 2012 13:52
Macro Trouble -Winows Explorer Crashes with Macro Martin Castillo FLUENT 1 July 25, 2007 04:18
Macro problem cfddummy CD-adapco 1 April 9, 2007 12:37
macro not function! guang ai CD-adapco 0 July 25, 2004 18:53
Call a macro from a macro Flav CD-adapco 2 July 1, 2004 05:42


All times are GMT -4. The time now is 20:09.