Sample Scripts

Several sample scripts have been include to assist you in getting started with VBScript and RhinoScript.  More RhinoScript samples can be found in the RhinoScript samples repository on GitHub.

 

Method

Description

AnnotateCurveEndPoints

Demonstrates how to annotate a curve's end points.

ArrayPointsOnSurface

Demonstrates how to array point objects on a surface.

CircleFromCircumference

Demonstrates how to create a circle from a center point and a circumference value.

CopyObjectsToLayer

Demonstrates how to copy selected objects to a different layer.

CreateShortcut

Demonstrates how to create a shortcut to the current document on the Windows desktop..

CurrentModelInfo

Demonstrates how to use the File System Object to retrieve information about a file.

CurveLength

Demonstrates how to determine there length of selected curve objects.

DrawParametricCurve

Demonstrates creating an interpolated curve based on a parametric equation.

DumpDocumentData

Demonstrates how to list all RhinoScript document data to the command line.

DynamicArray

VBScript dynamic array utility class.

ExportPoints

Demonstrates how to export the coordinates of point and point cloud objects to a text file.

FormatMessage

Demonstrates functions that can be useful when formatting strings of text.

GardenPath

Demonstrates how to create a garden path.

GetArrayDim

Demonstrates how to determine the number of dimensions to an array.

ImportCurveFromExcel

Creates an interpolated curve from 3-D point coordinates read from a Microsoft Excel spreadsheet.

MakeNurbsCurve

Demonstrates how to create a NURBS curve.

ReadTextFile

Demonstrates how to read from a text file.

RGB Helpers

Demonstrate how to extract individual red, green, or blue color component values from an RGB-formatted color value.

Rhino.rvb

Provides constant declarations useful when using RhinoScript methods.

RingTorus

Demonstrates two different methods for generating a torus-shaped surface.

SaveView

Demonstrates how to save a named view.