AnsweredAssumed Answered

Turn On Tracing for MapTool

Question asked by mjk5000 on May 7, 2018
Latest reply on May 8, 2018 by sean_jones-esristaff

I would like my drawing tool to default to Snapping to Vertices and to Enable Tracing mode on Activate.  I have easily figure out how to enable Snapping, but i am not able to enable Tracing mode.  In arcobjects I was able to do this with the TraceConstructor/ShapeConstructor.  How can i do this in the new version so that the tool defaults to the trace mode.  Here is what I want to do so far.  I create a polylie that snaps, but i also want it to trace using the standard trace option.

        protected async override Task OnToolActivateAsync(bool hasMapViewChanged)
        {
            if (_lineSymbol == null)
            {
                _lineSymbol = await CreateLineSymbolAsync();
            }

            SketchSymbol = _lineSymbol.MakeSymbolReference();
           
            //General Snapping
            Snapping.IsEnabled = true;
            Snapping.SetSnapMode(SnapMode.Edge, true);
            Snapping.SetSnapMode(SnapMode.End, true);
            Snapping.SetSnapMode(SnapMode.Intersection, true);

            //TURN ON TRACING TOOL
            //TURN ON TRACING TOOL
        }

Outcomes