BSH:Generate Grid

This is an example script for the generation of a node-grid. Upon execution it is possible to enter the width and height of the grid to be generated.

For adding this functionality to the system, simply open a text editor and add the following source code. Save the file with the extension .bsh to your home-folder.

For example under Windows you may store the file as

"c:\documents and settings\myUserAccount\gridgen.bsh".

Under Linux you may save the file to

"/home/myuseraccount/gridgen.bsh".

The corresponding menu item command "Graph/Generate grid" (as defined in the first line of the source code) will be added to the system as soon as you create or open a empty editor window (File/New, File/Open).

Source Code 

Example image of new menu item appears
A new menu item appears

A new menu item appears


Example image of input-parameters of the script.
The input-parameters of the script

The input-parameters of the script


Example image of resulting node grid.
The resulting node-grid

The resulting node-grid