Select to view content in your preferred language

How to create new tool?

1062
5
10-24-2012 06:05 PM
InsuHong1
Emerging Contributor
Hello,

I'm looking for how to create new tool in ArcGIS.

I developed console application with C# using ArcObject.

I want to make it as new tool in ArcMap, like new tool in arctoolbox.

I want make GUI for open dataset for several input data for my tool, and also output, just like plain Arctool.


I already checked walkthrough like this http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000001ms000000

but I didn't get it.


How do I make simple GUI like below?

[ATTACH=CONFIG]18699[/ATTACH]


I thought about convert my code to Python and add it as new tool in ArcToolBox. But some part of my code cannot be converted to Python. So that's not an option.

I have very little experience with programing with C# and ArcObject, so please consider that.


Thank you.
0 Kudos
5 Replies
T__WayneWhitley
Honored Contributor
...so can you do a .NET add-in and create your own tool GUI of sorts?
0 Kudos
KenBuja
MVP Esteemed Contributor
You can use ArcObjects with Python. Take a look at this thread over in GIS.stackexchange.com
0 Kudos
T__WayneWhitley
Honored Contributor
Nice Ken, very nice, I forgot about that... say, just wondering, have you implemented any tools via comtypes?
I started checking it out a while back, with limited success, then dropped it.  I will definitely have to remember to get back to experimenting with that, thank you.
0 Kudos
KenBuja
MVP Esteemed Contributor
No, I haven't experimented with that yet. Just another item on my wish list when my time frees up...
0 Kudos
InsuHong1
Emerging Contributor
Thank you suggesting Python idea.

but I already coded my function in C#, and I don't have time to convert it (as I said, I have limited experience in programing).

Also, from my experience, python is slower than C#, and for my function, computing time is important.


So, I need way to make simple GUI with C#.

In ESRI walkthrough, they just mentioned about tools and buttons. How can I create simple tool window with GUI, just like ArcTool??
0 Kudos