## 7.1. User Defined Tools

Based on an existing construction you can create your own tools in GeoGebra. After preparing the construction of your tool, choose Create new tool in the Tools menu. In the appearing dialog you can specify the output and input objects of your tool and choose names for the toolbar icon and command.

Example: Square-Tool

· Construct a square starting with two points A and B. Construct the other vertices and connect them with the tool Polygon to get the square poly1.

· Select Create new tool in the Tools menu.

· Specify the Output objects: Click on the square or select it in the drop down menu.

· Specify the Input objects: GeoGebra automatically specifies the input objects for you (here: points A and B). You can also modify the selection of input objects using the drop down menu or by clicking on them in your construction.

· Specify the tool name and command name for your new tool. The tool name will appear in GeoGebra’s toolbar, the command name can be used in GeoGebra’s input field.

· You can also choose an image for the toolbar icon. GeoGebra resizes your image automatically to fit on a toolbar button.

Note: Your tool can be used both with the mouse and as a command in the input field. All tools are automatically saved in your “GGB” construction file.

Using the Manage tools dialog (menu Tools) you can delete a tool or modify its name and icon. You can also save selected tools to a GeoGebra Tools File (“GGT”). This file can be used later on (File menu, Open) to load its tools into another construction.

Note: Opening a “GGT” file doesn’t change your current construction, but opening a “GGB” file does.

Related Topics

7. Tools and Toolbar

www.geogebra.org