Solid Edge Framework Type Library
CreateNewDirectory Method
Specify name of the library in which you want to create  directory.
Specify path of the directory.
Description
Creates an empty directory at specified level in the library
Syntax
Visual Basic
Public Sub CreateNewDirectory( _
   ByVal bstrLibname As String, _
   ByVal bstrDirectoryPath As String _
) 
Parameters
bstrLibname
Specify name of the library in which you want to create  directory.
bstrDirectoryPath
Specify path of the directory.
Example
Imports System.Runtime.InteropServices

Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim objApp As SolidEdgeFramework.Application = Nothing
        Dim objType As Type = Nothing
        Dim objMatTable As SolidEdgeFramework.MatTable = Nothing
        Dim strLibrary As String = "Materials"
        Dim strMaterial As String = ""
        Dim listOfLibraries As Object = Nothing
        Dim strNewDirectory As String = "Metals\Steel\Heated Steels"
        Try
            ' Get SE handle
            objApp = Marshal.GetActiveObject("SolidEdge.Application")

            If objApp Is Nothing Then
                ' Get the type from the Solid Edge ProgID
                objType = Type.GetTypeFromProgID("SolidEdge.Application")
                ' Start Solid Edge
                objApp = Activator.CreateInstance(objType)
                ' Make Solid Edge visible
                objApp.Visible = True
            End If
            ' Get material table object handle
            objMatTable = objApp.GetMaterialTable()
            strLibrary = "Materials"
            objMatTable.CreateNewDirectory(strLibrary, strNewDirectory)

        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try

    End Sub

End Class
See Also

MatTable Object  | MatTable Members