Follow

How can I load a new SET file in a script once Surfer is running?

To load a new SET file in a Surfer script once Surfer is running, exit Surfer then use the shell( ) and GetObject( ) commands, as shown below.

 

Shell("c:\apps\surfer15\surfer.exe /set c:\apps\surfer15\dan.set",1)
Wait 4 'Wait a few seconds to allow Surfer to start
Dim Surf As Object
Set Surf = GetObject(,"Surfer.Application") 'Connect to the running instance of Surfer

 

Updated October 9, 2017

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.