logo

img

Knowledgebase Home > Surfer Scripter | Contact Knowledgebase Home | Contact
Search the Knowledgebase Browse by Category
Surfer Scripter rss button
Surfer Scripter questions
(Page 1 of 3)     «« |  Prev | 1 | 2 | 3 | Next | »»
There were 49 questions found in this category:
  1. questionCan I control Surfer from another programming environment?
    Yes. Surfer can be completely controlled by any Automation-capable programming language, including Visual Basic, Visual Basic for Applications (that ships with the Microsoft Office suite), or the Scripter programming language included with Surfer. Scripter is very similar to VBA. Most modern ...

  2. questionHow can I update my Surfer 6 scripts to work in the current version?
    The newer Surfer automation model, introduced in Surfer 7, is different than Surfer 6. Your Surfer 6 scripts may require considerable revision to work with newer versions of Surfer. Unfortunately, there is not an automatic way to convert scripts from the Surfer 6 automation model. To help lea ...

  3. questionDo you have any C# or C++ examples?
    Attached are some example files in C# (*.cs) and C++ (*.cpp). You are welcome to see if they help you. We do not support C# or C++ so we cannot help with modifications of these scripts.

  4. questionError when run script "ActiveX Automation: server cannot create object"
    There are a few reasons why you could be getting this error: The error message "(10092) ActiveX Automation: server cannot create object" may indicate that Surfer has not been installed correctly. You can try uninstalling and reinstalling Surfer and attempt to run the script again. If th ...

  5. questionCan I load a CLR file or specify a preset for a contour map via automation?
    Surfer 10 can load a CLR file for a contour map. All the CLR files for all the presets are saved to the installation file under the ColorScales folder. So you could use: 'Load a CLR file for the contour map and applies the changes to the map ContourMap.FillForegroundColorMap.Lo ...

  6. questionWhere can I find script examples?
    There are many locations where script examples can be located. Download Scripts for Surfer, Grapher, and MapViewer from our website: Golden Software provides a number of useful sample scripts that product owners can download for free from our website. http://www.goldensoftware.com/scripts.s ...

  7. questionDo you have an example in Python?
    Surfer can be called from a Python script. Below are some examples. 1. Here is an example that shows how to start Surfer: import win32com.client def main(): app = win32com.client.Dispatch("Surfer.Application") plot = app.Documents.Add(1) app.Visible = True main() 2. H ...

  8. questionError when running the bil2grd3 script: "Unable to read C:\filepath\filenameTmp.grd"
    Q: I'm trying to use the script bil2grd3 with Surfer 8 but the script produces this error: (H80020009) Unable to read C:\filepath\filenameTmp.grd And in Scripter the following information is highlighted: surf.GridTransform(ingrid:=grdtmp, _ operat ...

  9. questionHow do I import and/or export a TIF with a TFW world file into Surfer?
    Surfer 9 and 10 You do not need to do anything special to import a georeferenced image file. Go to Map | New | Base Map, select the TIF file and click Open. If the image is georeferenced, it will import in the correct map coordinates. To export a TIF/TFW file from Surfer 9 or 10, you can simply: ...

  10. questionMy script works in Surfer 9, but in Surfer 10 I get an error: Operand/operator type mismatch. It stops on a line inside a loop. Why?
    Surfer 10 comes with a new version of Scripter. The old scripter (Surfer 7, 8 and 9) was rather forgiving about concatenating a number to a string, such as when you use the loop variable (a number) as part of a string in a command line. The new Scripter enforces the BASIC language rules a bit mo ...

  11. questionNorton SONAR removes the Golden Software executable files as a security threat! I can?t install or run the software now. What is going on?
    Norton AntiVirus, 360, Internet Security and other Norton products may remove and quarantine the Grapher 8, Surfer 9, Voxler 2 and Strater 2 installation (from CD) and application executable files as threats. Once this happens, they will no longer run. Our software does not contain viruses or ot ...

  12. questionCan I make 3D surface maps transparent?
    The 3D surface maps do support inter-layer transparency, but not complete transparency. What this means is that if you overlay multiple surfaces, then the surfaces will be transparent relative to each other, but not to other objects behind the map: To to this, double click on one of ...

  13. questionHow can I set the grid spacing with the GridData function?
    The GridData method does not have parameters for setting grid spacing, but it does let you specify the number of grid lines. Calculate the number of grid lines for the desired grid spacing with the following equation: Number of grid lines = ( (max - min) / spacing ) To get the data min and max f ...

  14. questionCan I run a script from the command line?
    Yes, you can run a script via the command line with this syntax: "<Scripter path>" -x "filename.bas" The –x means execute, and quotes are necessary around the file path to the Scripter.exe file and the BAS file. For example: “c:\program files\golden software\surfer8\scripte ...

  15. questionWhat's the best way to learn Scripter?
    I found that the easiest way to learn how to write scripts is to know what you want to do in the program. Anything you can do in the program, you can do in a script, the sequence will be the same. Once you know the sequence of steps you want to perform, the next step is writing the script. For ...

  16. questionHow can I calculate the volume or area between contours?
    You can calculate the volume or area between contours either manually or by using a script to automate the process. Manually Go to Grid | Volume, select your grid file and click Open. Use the GRD file as the Upper Surface and the Z level of the first contour as the constant Lower Surface. ...

  17. questionEnumeration constants (srfGridFmtXYZ) are not working, how can I reference the Surfer type library?
    When the enumeration constants are not working or causing errors, it is usually because the Surfer type library is not referenced. This reference is needed for a program to recognize the value of the enumeration constants (such as srfGridFmtXYZ) that Surfer uses to reference various settings. Y ...

  18. questionHow can I load Surfer in a script using a different SET file?
    Use the shell( ) command to specify the SET file on the command line, then use the GetObject( ) command to use the existing instance of Surfer. ExeFile = "c:\program files\golden software\surfer 9\" + "surfer.exe" SetFile = "c:\program files\golden software\surfer 9\" + "new.set" Shell(ExeFile ...

  19. questionWhat is a "map frame" or a "map layer"?
    A map in Surfer is composed of its map frame and map layers, which you can see in the Object Manager. The map frame consists of all the axes and all the map layers, and is called Map by default. The map layers are the individual map types that you use to display your data. A map in Surfer ...

  20. questionMy data is in curvilinear (cylindrical or spherical) coordinates. How can I get it into a format that Surfer can use?
    We have written a GS Scripter program ( crv2xyz7.exe ) which can convert from cylindrical or spherical coordinates into X, Y and Z data. This program is available for download from our Scripts Library.

(Page 1 of 3)     «« |  Prev | 1 | 2 | 3 | Next | »»
Products