Jump to content
Sign in to follow this  
daxris

programming ArcObjects with VBA

Recommended Posts

Hey all.

I am a student from Greece, so I m really sorry for my English! I try to make my dissertation which has to do with programming ArcObjects with VBA. I have a shapefile with some roads of an area. I have to use the Djikstra's algorithm in general. But, as you can understand, I have first change programmatically the length of some roads. Is there anyone to help me??

Thanks

Share this post


Link to post
Share on other sites

http://youtu.be/psg2-6-CEXg

this algorithm it see very interesting ...i goint to search more information may be help you.

regards 

Share this post


Link to post
Share on other sites

Thank you for your reply. It's quite useful. As you understood I have to adapt the shortest path theory. So, I have programmatically to make a programm, in which you can choose from where you want to go and where to arrive, (from A to B for example), and this will suggest you the shortest path. Do you have any ideas?? Sorry for my english again...

Share this post


Link to post
Share on other sites

documentation for ESRI developer provide many example script, like this

[hide]

http://edndoc.esri.com/arcobjects/8.3/Samples/Spatial%20Analyst/DistanceShortestPath.htm

[/hide]

I dont know much bout VBA programming, but i suggest you to browse to those sites

regards

  • Like 1

Share this post


Link to post
Share on other sites

Thank you very much for the link. It can be very useful. If you find anything else about programming ArcObjects with VBA it would be crucial for me...

Share this post


Link to post
Share on other sites

Thanks for all guys. Is there anyone who knows how can I use an XML file in VBA programming? Surely it can be done programmatically but I cant find how. To be more specific, I have an XML file in which I have some informations such as ID's, coordinations etc. I want to open it programmatically, and make a code in which

For id=1 to maxID

  If  x > 329308.95 and  x < 335778.42 then

      If  y >  4098095.805 and  y < 4102028.150 then

            newID = id

            Xid = x

            Yid = y

      end if

    end if

next id

I can take all the x's and y's in a square..!

Share this post


Link to post
Share on other sites

would you like to tell me about ur dissertation ?

i have a plan to make my thesis using Arcobject VBA but I still confused what should I make using this type programming.

If U want to tell me, I think it'll give me an idea. Thank U

Share this post


Link to post
Share on other sites

The purpose of VBA and Python in fact popular to make easy repeated/iteration-able work inside ArcGIS desktop product. Mostly you need to open core product than you can use your developed tool/button etc. However you also can make GUI using third party/or your developed modules if you are strong on that. But you need to have desktop license installed in your computer. 

ArcObject offer mainly to make standalone solution through Dot Net framework. To deploy your development you will need runtime license.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.