ArcFM Desktop Developer Guide
Delete Method (IMMPxDeleter)


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

IMMPxNode
String
Long
This method deletes or marks for deletion all of the Process Framework and ArcMap relevant version data associated with a deleted node. The PxApplication property must be set before the Delete() method is called.
Syntax
'Declaration
 
Sub Delete( _
   ByVal pPxNode As IMMPxNode, _
   ByRef sMsg As String, _
   ByRef Status As Integer _
) 
'Usage
 
Dim instance As IMMPxDeleter
Dim pPxNode As IMMPxNode
Dim sMsg As String
Dim Status As Integer
 
instance.Delete(pPxNode, sMsg, Status)
void Delete( 
   IMMPxNode pPxNode,
   out string sMsg,
   out int Status
)

Parameters

pPxNode
IMMPxNode
sMsg
String
Status
Long
Example
The following code sample demonstrates how the IMMPxDeleter::Delete method may be implemented.
Visual Basic Copy Code
Private Sub IMMPxDeleter_Delete(ByVal pPxNode As Miner.Interop.Process.IMMPxNode, _
sMsg As String, Status As Long)
    Dim pExt As IMMSessionManager
    Set pExt = m_pPxApp.FindPxExtensionByName("MMSessionManager")

    Dim pVersion As IMMSessionVersion
    Set pVersion = pExt.GetSession(pPxNode.Id, False)

    If pVersion Is Nothing Then
        MsbBox "Could not find Session node "
    End If

    Status = DeleteArcData(pPxNode, pVersion, sMsg)
    If Status = 0 Then
        If Not (RemoveSession(m_pPxApp, pPxNode.Id, False)) Then Exit Sub
    Else
        pVersion.Status = 4
    End If
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

IMMPxDeleter Interface
IMMPxDeleter Members

 

 


Send Comment