User Tools

Site Tools


wiki:sns:snspro:run_snsscript

This is an old revision of the document!


Don't have Scan&Solve? Get it now! 7-day evaluation is free

Using SnSScript

SnSScript for Scan&Solve 2014 is used as part of RhinoScript. RhinoScript is a scripting language based on VBScript.

Almost all of Scan&Solve 2014's functionality is available in RhinoScript. The available functions and syntax is documented within the SnSScript documentation.

Editing a script

A script can be edited by running the EditScript command in Rhino. Scripts can be opened from and saved as .rvb files.

The left menu contains all of the Rhino methods that can be called from RhinoScript. Double clicking on a method will open the reference for that method, including syntax and functionality.

Running a script

Scripts can be executed within the editing interface (EditScript) by pressing F5; selecting Source > Run; or by clicking the Run this script icon.

In the Rhino interface itself, the scripts can be loaded from the file system by selecting Tools > Rhinoscript > Load….

A script can then be opened and executed. Click Add… and navigate to the script .rvb file, and click Open. Then, selecting the script and clicking Load will execute the script.

Tips

While all of the geometry methods are available in RhinoScript, it is often fastest to create the geometry in the Rhino graphical interface.

If a Rhino solid already has loads and restraints set up, SnSScript will use that scenario when it is called to run on that solid. Setting up the SnSScript scenario this way can often be faster than fully automating the creation of the scenario through the command line.

References

wiki/sns/snspro/run_snsscript.1499974105.txt.gz · Last modified: 2017/07/13 13:28 by zach