ArcFM Desktop Developer Guide
Execute Method (IMMPhaseSwapHelper)


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

The object (as IObject) on which the edit is performed or error is raised before the swap occurs.

IMMPhaseSwapMap
Use this method to perform an edit or raise an error on a feature or its related object before the swap is completed.
Syntax
'Declaration
 
Function Execute( _
   ByVal pObject As ESRI.ArcGIS.Geodatabase.IObject, _
   ByVal pPhaseMap As IMMPhaseSwapMap _
) As Boolean
'Usage
 
Dim instance As IMMPhaseSwapHelper
Dim pObject As ESRI.ArcGIS.Geodatabase.IObject
Dim pPhaseMap As IMMPhaseSwapMap
Dim value As Boolean
 
value = instance.Execute(pObject, pPhaseMap)
bool Execute( 
   ESRI.ArcGIS.Geodatabase.IObject pObject,
   IMMPhaseSwapMap pPhaseMap
)

Parameters

pObject

The object (as IObject) on which the edit is performed or error is raised before the swap occurs.

pPhaseMap
IMMPhaseSwapMap

Return Value

Boolean
Example
The following code sample shows how IMMPhaseSwapHelper::Execute may be implemented.
Visual Basic Copy Code
Private Function IMMPhaseSwapHelper_Execute(ByVal pObject As IObject, ByVal pPhaseMap As IMMPhaseSwapMap) As Boolean

  OutputDebugString "PS: Start Execute"

  'Get model name
  Dim pRole As String
  pRole = GetModelNameFromObject(pObject)

  OutputDebugString "PS: Role: " & pRole

  If pRole = "" Then Exit Function

  'Initialize boolean for PhaseSwap to call store on feature due to Helper updates
  Dim bCallStore As Boolean
  bCallStore = False

  Select Case pRole
     Case "PrimaryConductor"
        bCallStore = ExecutePrimaryHelp(pObject, pPhaseMap)
     Case "FeederSecondary"
        bCallStore = ExecuteSecondaryHelp(pObject, pPhaseMap)
     Case "Transformer"
        bCallStore = ExecuteTransformerHelp(pObject, pPhaseMap)
     Case "Switch"
        bCallStore = ExecuteSwitchHelp(pObject, pPhaseMap)
     Case "DynamicProtectiveDevice"
        bCallStore = ExecuteDynProtectiveDeviceHelp(pObject, pPhaseMap)
     Case "Fuse"
        bCallStore = ExecuteFuseHelp(pObject, pPhaseMap)
     Case "TransformerUnit"
        bCallStore = ExecuteTransformerUnitHelp(pObject, pPhaseMap)
  End Select

  IMMPhaseSwapHelper_Execute = bCallStore

End Function
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

IMMPhaseSwapHelper Interface
IMMPhaseSwapHelper Members

 

 


Send Comment