Data is imported to and exported from the Analysis API via XML using this interface. This interface is used by Network Adapter's Analysis API, CYMDIST API, Electric Solver API and MultiSpeak API.
    The following two code samples show how to use the property sets available.
    
        
            
                | Set Properties for Export (Visual Basic) |  Copy Code | 
            
                | 
                        
                            
                                
                                    | Private Function MspAPIExportProps(Optional OutputXMLFileName As String = "", _Optional Verb As String = "Change") As IPropertySet
 
 
 
 
 
 Dim pReg As IMMRegistry
 Dim XSLFileName As String
 Set pReg = New MMRegistry
 Call pReg.OpenKey(mmHKEY_LOCAL_MACHINE, mmArcFM, k_STYLE_SHEET_REGKEY)
 XSLFileName = pReg.Read(NETADAPTERMSPXSLPATH, "")
 
 
 Dim Props As IPropertySet
 Set Props = New PropertySet
 Call Props.SetProperty(k_MESSAGECALLBACK, Me)
 Call Props.SetProperty(IMPORTMODE, FROMGIS)
 If XSLFileName <> "" Then
 Call Props.SetProperty(GISEXPORT_XSL, XSLFileName)
 End If
 If OutputXMLFileName <> "" Then
 Call Props.SetProperty(MSPXML, OutputXMLFileName)
 End If
 Call Props.SetProperty(MSPVERB, Verb)
 
 Set MspAPIExportProps = Props
 
 End Function
 |  | 
        
    
 
 
    
        
            
                | Set Properties for Import (Visual Basic) |  Copy Code | 
            
                | 
                        
                            
                                
                                    | Private Property Get ImportProperties(AnalysisType As String, Wksp As IWorkspace) _
 As IPropertySet
 
 
 
 
 
 Dim Props As IPropertySet
 Set Props = New PropertySet
 Call Props.SetProperty(IMPORTMODE, FROMEA)
 Call Props.SetProperty(ANALYSIS_TYPE, AnalysisType)
 Call Props.SetProperty(k_MESSAGECALLBACK, Me)
 
 
 
 
 Static pXMLClassIDs As DOMDocument30
 
 If pXMLClassIDs Is Nothing Then
 Set pXMLClassIDs = GetClassIDs(Wksp)
 End If
 If Not pXMLClassIDs Is Nothing Then
 Call Props.SetProperty(CLASS_IDS, pXMLClassIDs)
 End If
 
 
 Dim sXSLFileName As String
 Dim pReg As IMMRegistry
 Set pReg = New MMRegistry
 Call pReg.OpenKey(mmSystem.mmHKEY_LOCAL_MACHINE, mmSystem.mmDistOps, k_MINERVILLE_MULTISPEAK)
 sXSLFileName = pReg.Read(NETADAPTER_RESULTSXSLPATH, "")
 If sXSLFileName <> "" Then
 Call Props.SetProperty(GISIMPORT_XSL, sXSLFileName)
 End If
 
 
 If Not pXMLClassIDs Is Nothing Then
 Dim ResultsTemplateFileName As String
 ResultsTemplateFileName = UserPath + "\" + RESULTS_TEMPLATE
 If Not PathExists(ResultsTemplateFileName) Then
 ResultsTemplateFileName = Environ("TEMP") + "\" + RESULTS_TEMPLATE
 End If
 
 Call pXMLClassIDs.Save(ResultsTemplateFileName)
 End If
 
 Set ImportProperties = Props
 
 End Property
 |  | 
        
    
 
 
            
            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.
Data is imported to and exported from the Analysis API via XML using this interface. This interface is used by Network Adapter's Analysis API, CYMDIST API, Electric Solver API and MultiSpeak API.
            
    The following two code samples show how to use the property sets available.
    
        
            
                | Set Properties for Export (Visual Basic) |  Copy Code | 
            
                | 
                        
                            
                                
                                    | Private Function MspAPIExportProps(Optional OutputXMLFileName As String = "", _Optional Verb As String = "Change") As IPropertySet
 
 
 
 
 
 Dim pReg As IMMRegistry
 Dim XSLFileName As String
 Set pReg = New MMRegistry
 Call pReg.OpenKey(mmHKEY_LOCAL_MACHINE, mmArcFM, k_STYLE_SHEET_REGKEY)
 XSLFileName = pReg.Read(NETADAPTERMSPXSLPATH, "")
 
 
 Dim Props As IPropertySet
 Set Props = New PropertySet
 Call Props.SetProperty(k_MESSAGECALLBACK, Me)
 Call Props.SetProperty(IMPORTMODE, FROMGIS)
 If XSLFileName <> "" Then
 Call Props.SetProperty(GISEXPORT_XSL, XSLFileName)
 End If
 If OutputXMLFileName <> "" Then
 Call Props.SetProperty(MSPXML, OutputXMLFileName)
 End If
 Call Props.SetProperty(MSPVERB, Verb)
 
 Set MspAPIExportProps = Props
 
 End Function
 |  | 
        
    
 
 
    
        
            
                | Set Properties for Import (Visual Basic) |  Copy Code | 
            
                | 
                        
                            
                                
                                    | Private Property Get ImportProperties(AnalysisType As String, Wksp As IWorkspace) _
 As IPropertySet
 
 
 
 
 
 Dim Props As IPropertySet
 Set Props = New PropertySet
 Call Props.SetProperty(IMPORTMODE, FROMEA)
 Call Props.SetProperty(ANALYSIS_TYPE, AnalysisType)
 Call Props.SetProperty(k_MESSAGECALLBACK, Me)
 
 
 
 
 Static pXMLClassIDs As DOMDocument30
 
 If pXMLClassIDs Is Nothing Then
 Set pXMLClassIDs = GetClassIDs(Wksp)
 End If
 If Not pXMLClassIDs Is Nothing Then
 Call Props.SetProperty(CLASS_IDS, pXMLClassIDs)
 End If
 
 
 Dim sXSLFileName As String
 Dim pReg As IMMRegistry
 Set pReg = New MMRegistry
 Call pReg.OpenKey(mmSystem.mmHKEY_LOCAL_MACHINE, mmSystem.mmDistOps, k_MINERVILLE_MULTISPEAK)
 sXSLFileName = pReg.Read(NETADAPTER_RESULTSXSLPATH, "")
 If sXSLFileName <> "" Then
 Call Props.SetProperty(GISIMPORT_XSL, sXSLFileName)
 End If
 
 
 If Not pXMLClassIDs Is Nothing Then
 Dim ResultsTemplateFileName As String
 ResultsTemplateFileName = UserPath + "\" + RESULTS_TEMPLATE
 If Not PathExists(ResultsTemplateFileName) Then
 ResultsTemplateFileName = Environ("TEMP") + "\" + RESULTS_TEMPLATE
 End If
 
 Call pXMLClassIDs.Save(ResultsTemplateFileName)
 End If
 
 Set ImportProperties = Props
 
 End Property
 |  | 
        
    
 
 
            
            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.