Grieck

How do you remove tools or disable tools in a template?

Discussion created by Grieck on Oct 12, 2011
Latest reply on Jan 16, 2012 by svasa
Hello,

I have a line Feature Class in my map document. When the user selects the line template they are presented with the following tools to create the feature with: Line, Rectangle, Circle, Ellipse, and Freehand (see attached screen shot).

I would like to 1) remove all the tools except the Line tool or 2) disable all the tools except the Line tool. I've found IEditTemplate.Tool but I'm not clear on how to use this or if it is advisable to remove tools from a template.

I would appreciate some sample code showing how to manage the tools in a template. Also, if it's not possible to remove tools from a template can you provide suggestions for a work around.


[ATTACH=CONFIG]9482[/ATTACH]

G

Attachments

Outcomes