Bookmark this page: Add How to write a real code with ArcGIS  ArcMap or ArcView     to Yahoo MyWeb Add How to write a real code with ArcGIS  ArcMap or ArcView     to Google Bookmarks Add How to write a real code with ArcGIS  ArcMap or ArcView     to Windows Live Add How to write a real code with ArcGIS  ArcMap or ArcView     to Del.icio.us Digg How to write a real code with ArcGIS  ArcMap or ArcView    ! Add How to write a real code with ArcGIS  ArcMap or ArcView     to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by afshar on July 15, 2006, 1:16 pm
Hi every there!

I'm really confused and need help! I describe the situatuin itself: I
have ArcMap (or ArcView) and opened some map on it (by adding .SHP
files to them).
1. I want to write a Macro or Program with VBA or any other language
that RUNS one of my COMs that I've registerd in windows.
2. Firing this Macro when user clicks somewhere on the map like
Identify in ArcMap

I've searched more than 2 day all the newsgroup and web but i havn't
find a way to doing it. Because everybody was discussing what language
is better.
Please note I'm a software programmer and just new to GIS and ArcGIS.
Your consideration will be very valuable to me,

Thanks in Advance,
Afshar Mohebbi


Posted by ajneuman@gmail.com on July 16, 2006, 3:55 am
Hello, Have you tried the ESRI Developer Network or ESRI Support site?
http://edn.esri.com/ OR http://support.esri.com/

There you can find forums and develoer samples in multiple languages.
Also if you have installed the ArcObjects Developer kit there are code
samples (Typically written for VBA) and plenty of documentation.

ESRI allows you the flexibility to use any COM language or .NET to
develope code for ArcGIS however, if you want to use VBA then, you
limited to developing tools that written in either the MXD or MXT
which, isn't the most stable location for your code.

Also, you shouldn't have any problem incorporating your own COM objects
with ArcObjects in any language you choose. I often you custom class
libraries in both VBA and VB when writing tools for ArcGIS.

I hope this helps!

Andrew Neuman

afshar wrote:
> Hi every there!
> I'm really confused and need help! I describe the situatuin itself: I
> have ArcMap (or ArcView) and opened some map on it (by adding .SHP
> files to them).
> 1. I want to write a Macro or Program with VBA or any other language
> that RUNS one of my COMs that I've registerd in windows.
> 2. Firing this Macro when user clicks somewhere on the map like
> Identify in ArcMap
> I've searched more than 2 day all the newsgroup and web but i havn't
> find a way to doing it. Because everybody was discussing what language
> is better.
> Please note I'm a software programmer and just new to GIS and ArcGIS.
> Your consideration will be very valuable to me,
>
> Thanks in Advance,
> Afshar Mohebbi