I would like to modify one of the XTools scripts or use its code in another script. How can I get access to the script?
When XTools is loaded in a project all of its scripts are accessible to the user. The general process is to figure out the name of the script you want, then import it into the project. The following example uses the XTools Erase Features function as an example: Figure out the name of the script you want: 1. Open a new Project, load the XTools Extension, and open a View. 2. Double right-click on the button bar or tool bar. This will open up the Customize Dialog. 3. In the dialog, scroll to the right until you see “&XTools”. 4. Look down the list below “&XTools” until you see the function that you want the script for (in this case “Erase Features”). Click on “Erase Features”. 5. The “Click” line will tell you the name of the script that runs when you click on the menu item. In this example it is “aanView.EraseFeatures”. Import the script into your project: 1. Return to the Project window. 2. Click on the “Scripts” button and click on the “New” button. This opens a new script. 3. Click on