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\surfer16\surfer.exe /set c:\apps\surfer16\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 November 2, 2018

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


Please sign in to leave a comment.