Hello,
I have created a Ribbon button through the API.
I created a Command so that when the user clicks on this button, it captures the selected feature from map and performs a trace, and highlight the result on the map.
My Command...
[CommandMethod("TRACEDOWN ", CommandFlags.UsePickSet)]
...
Document.Map.HighlightFeatures(features, Topobase.Map.MapLogic.HighlightModes.Highlight, true);
...
My trace result returns data but it does not highlights. I only have one document in my workspace.
I used [CommandMethod("HIGHLIGHTTEST", CommandFlags.Session)] then the highlights works but i want to know what was being selected.
How do i achieve this using the CommandMethod()?
When the user clicks on my Ribbon Button, all i want to do are:
- determine which feature was selected
- Trace up or down from the selected feature and get the result
- Highlight the result on Map
Thanks in advance for all the hellp.
HyVong
Edited by: HyVong on Jul 27, 2009 8:55 PM
Edited by: HyVong on Jul 27, 2009 8:56 PM