editor.StartEditing(dataset.Workspace); ISketchOperation2 sketchOperation = new SketchOperationClass(); sketchOperation.Start(editor);
public void CurrentTool(IApplication app) { ICommandBars documentBars = app.Document.CommandBars; UID cmdID = new UIDClass(); cmdID.Value = "{9EBF3A1E-D0C0-11D0-802D-0000F8037368}"; ICommandItem cmdItem = documentBars.Find(cmdID, false, false); app.CurrentTool = cmdItem; }
You can start the Edit Tool like this public void CurrentTool(IApplication app) { ICommandBars documentBars = app.Document.CommandBars; UID cmdID = new UIDClass(); cmdID.Value = "{9EBF3A1E-D0C0-11D0-802D-0000F8037368}"; ICommandItem cmdItem = documentBars.Find(cmdID, false, false); app.CurrentTool = cmdItem; }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.