+ Reply to Thread
Results 1 to 4 of 4

Thread: Flash Command

  1. #1
    Mele Koneya
    Join Date
    Apr 2010
    Posts
    159
    Points
    2
    Answers Provided
    6


    0

    Default Flash Command

    I would like to implement the same flash feature command that ESRI uses when accessing the context menu on a table row.

    I have used the following to flash a selected feature:

    IActiveView activeView = ArcMap.Document.ActiveView;
    IFeatureIdentifyObj featIdentify = new FeatureIdentifyObject();
    featIdentify.Feature = feature;
    IIdentifyObj identify = featIdentify as IIdentifyObj;
    identify.Flash(activeView.ScreenDisplay);

    This code works, but does not have the 'crosshairs' that the ESRI flash command does.

    I was looking possibly executing a command with ICommand.Execute, but could not find an ID for the Flash Command form the table context menu.

    Anyone have success with implmenting the same Flash Command that ESRI uses within custom code?

    Thanks,

    Mele

  2. #2
    Sui Huang
    Join Date
    Aug 2010
    Posts
    177
    Points
    4
    Answers Provided
    8


    0

    Default Re: Flash Command

    I encountered the same situation and also want to know the anwser. Thank you for asking it before me.

    Quote Originally Posted by mkoneya View Post
    I would like to implement the same flash feature command that ESRI uses when accessing the context menu on a table row.

    I have used the following to flash a selected feature:

    IActiveView activeView = ArcMap.Document.ActiveView;
    IFeatureIdentifyObj featIdentify = new FeatureIdentifyObject();
    featIdentify.Feature = feature;
    IIdentifyObj identify = featIdentify as IIdentifyObj;
    identify.Flash(activeView.ScreenDisplay);

    This code works, but does not have the 'crosshairs' that the ESRI flash command does.

    I was looking possibly executing a command with ICommand.Execute, but could not find an ID for the Flash Command form the table context menu.

    Anyone have success with implmenting the same Flash Command that ESRI uses within custom code?

    Thanks,

    Mele

  3. #3
    Sui Huang
    Join Date
    Aug 2010
    Posts
    177
    Points
    4
    Answers Provided
    8


    0

    Default Re: Flash Command

    IMapControlDefault.FlashShape also flashes the geometry, but still does not provide cross-hair

  4. #4
    Link Elmore
    Join Date
    Jul 2010
    Posts
    20
    Points
    0
    Answers Provided
    0


    0

    Default Re: Flash Command

    Has anyone found a Python equivalent for this? Perhaps in the arcpy.mapping module? I can't seem to locate it.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts