Solid Edge Revision Manager Object Library
SynchronizeDocumentsInCache Method
Specifies the number of documents to be synchronized.
Specifies the URL paths of the documents to be synchronized.
Description
This method synchronizes the documents you specify in the cache with the server.
Syntax
Visual Basic
Public Function SynchronizeDocumentsInCache( _
   ByVal NumberOfDocumentsToBeSynchronizedWithServer As Long, _
   ByVal ListOfDocumentsInCacheToBeSynchronized As Variant _
) As Long
Parameters
NumberOfDocumentsToBeSynchronizedWithServer
Specifies the number of documents to be synchronized.
ListOfDocumentsInCacheToBeSynchronized
Specifies the URL paths of the documents to be synchronized.
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

    Sub Main()
        Dim objApplication As RevisionManager.Application = Nothing
        Dim objInsight As RevisionManager.Insight = Nothing
        Dim NumberOfOutOfDateDocuments As Long
        Dim aListOfOutOfDateDocuments As Object = Nothing

        Try
            ' Start Revision Manager.
            objApplication = New RevisionManager.Application

            ' Get reference to Insight object.
            objInsight = objApplication.Insight

            objInsight.GetOutOfDateDocuments(NumberOfOutOfDateDocuments, aListOfOutOfDateDocuments)
            objInsight.SynchronizeDocumentsInCache(NumberOfOutOfDateDocuments, aListOfOutOfDateDocuments)

        Catch ex As Exception
            ' Write any errors to console.
            Console.WriteLine(ex.Message)
        Finally
            ' Release COM Objects.
            If Not (objInsight Is Nothing) Then
                Marshal.ReleaseComObject(objInsight)
                objInsight = Nothing
            End If

            If Not (objApplication Is Nothing) Then
                objApplication.Quit()
                Marshal.ReleaseComObject(objApplication)
                objApplication = Nothing
            End If
        End Try
    End Sub

End Module
See Also

Insight Object  | Insight Members

Send comments on this topic.