Solid Edge Revision Manager Object Library
CreateFolder Method
Specifies the number of folders to create.
Specifies the folder(s) to create, with complete URL paths.
Description
This method creates a folder or group of folders with the specified name or names.
Syntax
Visual Basic
Public Function CreateFolder( _
   ByVal numberOfFoldersToCreate As Long, _
   ByVal ListOfFoldersToCreate As Variant _
) As Long
Parameters
numberOfFoldersToCreate
Specifies the number of folders to create.
ListOfFoldersToCreate
Specifies the folder(s) to create, with complete URL paths.
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

    Sub Main()
        Dim objApplication As RevisionManager.Application = Nothing
        Dim objInsight As RevisionManager.Insight = Nothing
        Dim ListOfFolders(2) As String

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

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

            ListOfFolders(0) = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Summit"
            ListOfFolders(1) = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Greg"
            ListOfFolders(2) = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Greg1"

            objInsight.CreateFolder(ListOfFolders.Length, ListOfFolders)
        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.