Select to view content in your preferred language

editor task activated from button on the form

731
2
Jump to solution
11-05-2013 10:48 PM
RayanthaRathnayake
Deactivated User
Dear all,
i have developed a tool with the support of the "Cut polygon without selection" task of the esri samples in 9.3 with vb6.
For my further studies i need to convert all codes to vb.net which runs on 9.3
But im very difficult to find out how to activate the "Cut polygon without selection"  programtically when a user form button click. cananyone help me in this issue please.
thank you
Pradeep Rathnayake
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Hi there,
In your button click event on the form you'll need to set the editors current edit task to be the custom cut polygons task that you previously created and installed. See the IEditTaskSearch help for how to search for and set this task.
You can also set the sketch tool as the current tool by reading this post.

If you migrate to 10.x in the future you can also find this sample as an add-in.

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable
Hi there,
In your button click event on the form you'll need to set the editors current edit task to be the custom cut polygons task that you previously created and installed. See the IEditTaskSearch help for how to search for and set this task.
You can also set the sketch tool as the current tool by reading this post.

If you migrate to 10.x in the future you can also find this sample as an add-in.
0 Kudos
RayanthaRathnayake
Deactivated User
Hi there,
In your button click event on the form you'll need to set the editors current edit task to be the custom cut polygons task that you previously created and installed. See the IEditTaskSearch help for how to search for and set this task.
You can also set the sketch tool as the current tool by reading this post.

If you migrate to 10.x in the future you can also find this sample as an add-in.


Jones,
Thank you giving me the reply quickly.
IEditTaskSearch : I went through this, but my problem is converting from VB  to VS 2008 - vb.net. Because i found some differences are there in "implements". Say you frankly, i developed the earlier tool for my master's study, but now im in the phase of MPhil. In there i have to study the optimum method to develop the tool. But unfortunately VB 6 is unavailable for further development and etc problems. Hence i had to move VS 2008. But the envirment is new to me.
I thought, Arc Engine is need to develop same kind of tool in ArcGIS 10 using VS 2010. Is it correct?
because my tool is activated from a button on the command bar and show a logon button. then thrre are six buttons on the from. when each button click, it seperatly activated  either cut without selection or merge polygon for a dedicated polygon shape file. Then user do the operation and change the attributes of the newly created polygons through the form. Then menu of the form allow user to perform geoprocess (union the layers and attribute calculation) and show the results on the form. next part of the tool is hydrological calculation part which entirely runs on the coding only. So this is my task to do with the ArcGIS.

In this scenario i used the ESRI VB example in the past-  "parcel maintatnce" or something like that. without understanding i used the codes here and there. But now i need to coding in mature style. Hence i need to better understand of the ArcGIS programming.
Therefore i kindly request you to show some path... means full brief on how to use IEditTaskSearch like thing in the tool, how to do implemnt such thiongs without "Engine" thnaks
0 Kudos