Forgot password?

Create an account!

Scripts

« back

Array Library

Description RhinoScript Library

RhinoScript Library by Hanno

A collection of functions to make life with arrays in RhinoScript easier

Version

Version 1.3 (Apr 04, 2008)

This is NOT the current version of this project!


Changes since previous version:

Added function "array_count", which returns the number of elements in an array (ubound + 1). Not really important, but its sometimes easier to read (if you want to check if there are elements in an array you can write "if array_count(myArr)" instead of "if ubound(myArr) > -1").

« older versions     newer versions »

Requirements

Rhino version: Rhino 4

Code

You need to be logged in to view the source code.

Download

You need to be logged in to download the script.

Recommend

Why are these buttons gray?

Comments
  • +++ Apr 04, 2008 00.39: Array Library version 1.3 published +++

  • 1. Hanno (Feb 05, 2008 21.07):

    Here is a nice feature that is not so obvious:
    VBScript does not allow to say

    ReDim myArray(1)(3)

    to put an array(3) at position(1) of myArray. But with Array Library you can do

    myArray(1) = array_dim(3)

    to achieve this without having to use a temporary variable.

  • +++ Jan 21, 2008 13.43: Array Library version 1.2 published +++

  • +++ Jan 18, 2008 15.58: Array Library version 1.1 published +++

  • +++ Jan 13, 2008 16.12: Array Library version 1 published +++