How to add your knowledge

Selecting Features in the Document

    Table of contents
    No headers

    One way for the user to select features in the document is to call the GetFeatures() method of the WorkflowSupport.Document.Map object. GetFeatures() allows the user to select any number of features (either one at a time or through selection windows and crossing windows) until they press the Enter key. The features selected are returned as a FeatureList as follows:

    FeatureList features;
    features = this.WorkflowSupport.Document.Map.GetFeatures();
    
    Note

    You cannot set the prompt; it automatically displays the text “Select Entities”. The workflow application is paused until the user finishes selecting features or presses Escape to cancel the operation.