When interfacing CalcImage with Surfer v. 14, an error ensues while trying to export images from CI to Surfer. It appears to be a problem with the Surfer script. Is there a fix?
Hi Karen,
I sent your report to Golden Software a few days ago and they responded that this is a "known issue" with Surfer v. 14, and that they would be fixing it in a subsequent release. In the meantime they suggest a "workaround".
The problem is that this line in any of the CalcImage scripts fails with an error : ActiveX Automation: Object var is 'Nothing'
SurferImageMap.ColorScale.Selected = True
Golden Software support suggests the following steps:
1. After the script is created in CalcImage and it asks if you want to run the script automatically, click "No".
2. Then from the Start button find the Golden Software | Surfer program menu group and click the Scripter app menu (if you have both Grapher and Surfer installed be sure to click the Scripter menu associated with Surfer).
3. From Scripter click the File | Open menu and browse to the script file you just created in CalcImage. I usually find the CalcImage project folder and sort by date and click the most recent .bas file in the folder.
4. Now scroll down and find all occurances of the following (problematic) line of code:
SurferImageMap.ColorScale.Selected = True
and place the cursor on that line and type F9 to set a breakpoint there. There may be more than one place this occurs in the script depending on the specific output type.
5. Now click the Script | Run menu and allow the script to start running. When the script pauses at the breakpoint you placed:
6. Select the Color Relief <your grid file name here>.grd layer in the Contents window.
7. In the Properties window, on the General page, check the checkbox next to Show color scale.
8. In Scripter, click the maroon breakline circle to remove the breakline. Resume running the script by clicking Script | Run.
What a PITA I know, but Golden Software said as soon as they fix Surfer v. 14 they would let me know, and I will immediately post here letting everyone know they can update their Surfer v. 14.
john