Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

code Script scripts xtools
0
Posted

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?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123