ArcFM Solution Developer Guide
Execute Method (IMMSpecialAUStrategyEx)






Passes in as IObject the object that is being acted on
Passes in as eAUMode the mode of the Autoupdater component; utilizes the mmAutoUpdaterMode enumeration

Passes in as eEvent the edit event that fired the method; utilizes the mmEditEvent enumeration.

Use this method to code your special autoupdater task. It can contain code to perform any task that you want to assign to a feature event.
Syntax
'Declaration
 
Sub Execute( _
   ByVal pObject As ESRI.ArcGIS.Geodatabase.IObject, _
   ByVal eAUMode As mmAutoUpdaterMode, _
   ByVal eEvent As mmEditEvent _
) 
'Usage
 
Dim instance As IMMSpecialAUStrategyEx
Dim pObject As ESRI.ArcGIS.Geodatabase.IObject
Dim eAUMode As mmAutoUpdaterMode
Dim eEvent As mmEditEvent
 
instance.Execute(pObject, eAUMode, eEvent)
void Execute( 
   ESRI.ArcGIS.Geodatabase.IObject pObject,
   mmAutoUpdaterMode eAUMode,
   mmEditEvent eEvent
)
procedure Execute( 
    pObject: ESRI.ArcGIS.Geodatabase.IObject;
    eAUMode: mmAutoUpdaterMode;
    eEvent: mmEditEvent
); 
function Execute( 
   pObject : ESRI.ArcGIS.Geodatabase.IObject,
   eAUMode : mmAutoUpdaterMode,
   eEvent : mmEditEvent
);
void Execute( 
   ESRI.ArcGIS.Geodatabase.IObject* pObject,
   mmAutoUpdaterMode eAUMode,
   mmEditEvent eEvent
) 
void Execute( 
   ESRI.ArcGIS.Geodatabase.IObject^ pObject,
   mmAutoUpdaterMode eAUMode,
   mmEditEvent eEvent
) 

Parameters

pObject
Passes in as IObject the object that is being acted on
eAUMode
Passes in as eAUMode the mode of the Autoupdater component; utilizes the mmAutoUpdaterMode enumeration
eEvent

Passes in as eEvent the edit event that fired the method; utilizes the mmEditEvent enumeration.

Return Value

String
Example
This object is passed in when ArcFM executes the AU strategy. This is the "incoming" object being edited. The following code sample demonstrates how the IMMSpecialAUStrategyEx::Execute method may be implemented.
Visual Basic Copy Code
Private Sub IMMSpecialAUStrategyEx_Execute(ByVal pObject As _
IObject, eAUMode As mmAutoUpdaterMode)
  Dim pFeatureClass As IFeatureClass
  Dim pFeature As IFeature

  If eAUMode = mmAUArcMap Then
    Set pFeature = pObject
    Set pFeatureClass = pFeature.Class
    MsgBox "Special AU strategy operating on " & _
    pFeatureClass.AliasName & " featureClass.", , _
    "Simple Example"
  End If
End Sub
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IMMSpecialAUStrategyEx Interface
IMMSpecialAUStrategyEx Members

Send Feedback