Solid Edge Assembly Type Library
Path Property
Description
Returns the directory path name of the referenced document.
Property type
Read-only property
Syntax
Visual Basic
Public Property Path As String
Example
Private Sub Form_Load()
    Dim objApp As solidedgeFramework.Application
    Dim objDoc As solidedgeAssembly.AssemblyDocument
    Const TESTFILE = "T:\vbtests\testcases\sample.asm"
    Dim sPath As String
    ' Report errors
    Const PI = 3.14159265358979
    ' Create/get the application with specific settings
    On Error Resume Next
    Set objApp = GetObject(, "SolidEdge.Application")
    If Err Then
        Err.Clear
        Set objApp = CreateObject("SolidEdge.Application")
        Set objDoc = objApp.Documents.Add("SolidEdge.AssemblyDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    ' Clsoe the Active document
    Call objDoc.Close
    ' Opening the test case file
    Set objDoc = objApp.Documents.Open(TESTFILE)
    ' Getting the Path property of the AssemblyDocument object.
    sPath = objDoc.Path
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
End Sub
See Also

AssemblyDocument Object  | AssemblyDocument Members