ArcFM Engine Developer Guide
Execute Method (IMMTreeViewTool)


IMMTreeViewSelection
Method where developer will write custom code to perform the tool's task.
Syntax
'Declaration
 
Sub Execute( _
   ByVal pSelection As IMMTreeViewSelection _
) 
'Usage
 
Dim instance As IMMTreeViewTool
Dim pSelection As IMMTreeViewSelection
 
instance.Execute(pSelection)
void Execute( 
   IMMTreeViewSelection pSelection
)

Parameters

pSelection
IMMTreeViewSelection
Example
The following code sample demonstrates how the IMMTreeViewTool::Execute method may be implemented.
Visual Basic Copy Code
Private Sub IMMTreeViewTool_Execute(ByVal pSelection As Miner.Interop.FrameworkUI.IMMTreeViewSelection)
    Dim pListItem As ID8ListItem
    If pSelection.Count <> 1 Then Exit Sub

    pSelection.Reset
    Set pListItem = pSelection.Next
    Dim pPxNode As IMMPxNode
    Set pPxNode = pListItem 'QI

    Call InternalExecute(pPxNode)
End Sub
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

IMMTreeViewTool Interface
IMMTreeViewTool Members

 

 


Send Comment