Step 1 - Insert the VisualBots Simulator
From the VisualBots Helper menu, click Insert Simulator. If VisualBots menu is not visible then see Inserting the VisualBots Simulator.

Step 2 - Create a New Simulation Project
Create a new project by clicking on the "New Project" button on the VisualBots Simulator.

The Visual Basic Editor will open and display the following code.

Step 3 - Enter the Simulation Code
Enter the following code into the Visual Basic Editor. The OnSimBegin event procedure is executed once at the beginning of each simulation. The OnSimStep event procedure executes on every simulation time step. The OnSimEnd event procedure is executed an the end of a simulation. The simulation creates 10 Bot objects, sets some of the appearance properties of the Bot objects, and then instructs the Simulator to move the Bots objects in a random way on each simulation time step.

Switch back to the worksheet window and click on VisualBots Simulator's Play button. This will run your simulation.

To end the simulation, click on the End Simulation button.

Run the simulation again but this time, click on some of the other buttons and menu items to see their effect on the simulation. Many of the buttons are toggles so you will have to click them twice to toggle the action on and off.