AddStartupScript

Adds a new startup script to RhinoScript's startup script list. Startup script  items can be added manually by using Rhino's Options command and modifying the contents of the RhinoScript tab.

Syntax

Rhino.AddStartupScript (strScriptFile [, intIndex])

Parameters

strScriptFile

Required.  String.  A valid path to a RhinoScript .RVB file.

intIndex

Optional.  Number.  A zero-based position index in the startup script list to insert the string. If omitted, the path will be appended to the end of the startup script list.

Returns

Number

The zero-based index of the new startup script item. If the index is less than zero, then the path item was not added to the search path list.

Null

On error.

Example

Rhino.AddStartupScript Rhino.LastLoadedScriptFile

Rhino.AddStartupScript "c:\scripts\myscripttools.rvb"

Also See

DeleteStartupScript

StartupScriptCount

StartupScriptList