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
Comments
0 comments
Please sign in to leave a comment.