Select to view content in your preferred language

ITool to ISketch

1566
5
12-02-2009 07:11 AM
GregRieck
Frequent Contributor
Hello,

How do I undo an edit sketch operation?  I've tried ISketchOperation and it's not working.


Thank You, G
0 Kudos
5 Replies
GregRieck
Frequent Contributor
Okay, I think I have the undo working.

But does anyone know if it is possible to alter / add custom functionality to the Edit Sketch floating toolbar, (see attachment)?  What I'd like to be able to do is create a point along a line during the edit sketch operation and then continue with the line sketch.

G
0 Kudos
by Anonymous User
Not applicable
Yep, this is the feature construction toolbar and can be customized like the other toolbars in ArcMap via the customize->customize mode. Keep in mind that if you add customizations, try to keep them in the context of the edit sketch which is the only time this toolbar appears.
0 Kudos
GregRieck
Frequent Contributor
Sean,

Thank You for the reply. So is it possible to programmatically add additional custom tools to the feature construction toolbar? What is the ArcID of the feature construction toolbar, I have not been able to locate the 9.4 list yet. Typically this has been possible through ICommandBar.Add, but the GUID is required. Also, what are the subtypes?

G
0 Kudos
by Anonymous User
Not applicable
The Feature construction toolbar from arcid is:

Public Property Get FeatureConstructionMiniToolbar() As UID
Dim u As New UID
u = "{984E7949-9622-4C75-B8E1-493A7E9D474E}"
Set FeatureConstructionMiniToolbar = u
End Property

You can programatically add tools and commands to this toolbar. The shape constructor tool palette on this toolbar (and the editor toolbar) gets the shape constructor commands from the ESRI Shape Constructor Commands category.
Tool palettes cannot be customized at run time. You can create tool palettes with add-ins. More on this in the Beta2 doc...
0 Kudos
GregRieck
Frequent Contributor
Hello,
I was able to successfully add a custom tool to the Mini Construction toolbar, thank you for the GUID.

However, I noticed a strange behavior. My custom tools implement ICommandSubType and when I mouse over the icons it appears that they are inheriting the subtype of the mini construction toolbar instead of the subtypes from my class. Its also odd because the On_Click events are correctly reporting back message boxes of the tools subtypes. For example the subtypes for my controls are 6, 7 and 8 respectively from right to left in the highlighted group, see attached. However, when I mouse over my tool 6 I get the ToolTip response of my custom tool number 8, which just so happens to be the same position on the Mini Construction toolbar. Yet, when I click on my tool 6 it correctly reports back the tools name with a message box. Is this correct behavior?
G
0 Kudos