I want to trigger & execute a VB script while opening an ArcMAP MXD. Can any one help on how we can achieve this

698
6
11-27-2018 08:55 PM
praveenraorane
New Contributor II

Hi ,

I want to trigger & execute a custom script while opening an ArcMAP mxd.

Is there anyway we can achieve this.

Tags (1)
0 Kudos
6 Replies
TedKowal
Occasional Contributor III
0 Kudos
praveenraorane
New Contributor II

Thanks Ted.

I came across this link before, but its not helping me.

I am searching for steps on how we can invoke the script like

1. At what path should I place the custom VB script.

2. Where should i configure the path of the custom script & how to configure it.

0 Kudos
TedKowal
Occasional Contributor III

I do not believe VB script will be able to run on a startup simply.....

The start up routine is stored/pointed to in the registry of your computer....you would need to create a program in .net (not script)  and map objects to get a handle on the map.start.  This is not simple or easy and if you do not know what you are doing I highly do not recommend you modifying the map.start.

Xander Bakker‌ may have some other alternative if you can describe what you want to do

0 Kudos
XanderBakker
Esri Esteemed Contributor

There is a related thread here: https://community.esri.com/thread/176287  with some interesting comments, however at the end the user was looking for something different. In case you can share more precisely what you want to achieve, we might be able to offer you some alternatives. 

0 Kudos
DanPatterson_Retired
MVP Emeritus

This place is for ArcGIS pro questions Geoprocessing‌ might be better suited

0 Kudos
XanderBakker
Esri Esteemed Contributor

Can you elaborate on what the script will do?

0 Kudos