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.
Rhino.AddStartupScript (strScriptFile [, intIndex])
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. |
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. |
Rhino.AddStartupScript Rhino.LastLoadedScriptFile
Rhino.AddStartupScript "c:\scripts\myscripttools.rvb"