Gets all of this model's dependencies.  
             
            
.NET Syntax
| Visual Basic (Usage) |  | 
|---|
| Dim instance As IModelDocExtension
Dim Traverseflag As System.Boolean
Dim Searchflag As System.Boolean
Dim AddReadOnlyInfo As System.Boolean
Dim ListBrokenRefs As System.Boolean
Dim AppendImportedPaths As System.Boolean
Dim value As System.Object
 
value = instance.GetDependencies(Traverseflag, Searchflag, AddReadOnlyInfo, ListBrokenRefs, AppendImportedPaths) | 
Parameters
- Traverseflag
- True to traverse all dependency levels, false to get first level (see Remarks)
- Searchflag
- True to use the search rules to find dependencies, false to look where the documents were last saved (see Remarks)
- AddReadOnlyInfo
- True to show read-only information in the returned strings, false to not (see Remarks)
- ListBrokenRefs
- True to get broken references, false to not
- AppendImportedPaths
- True to append imported path names, false to not (see Remarks)
Return Value
Array of strings (see Remarks) 
  
             
             
            Example
'This example shows how to return all of the dependent files 
'for the specied active assembly.
'VBA
'Preconditions:
'1. Open public_documents\SOLIDWORKS\SOLIDWORKS 2021\samples\tutorial\api\arm2.sldasm.
'2. Open the Immediate window.
'3. Optionally set a breakpoint after vDepend is set so you can inspect its contents.
'Postconditions:
'Inspect the Immediate window.
Option Explicit
Sub main()
    Dim swApp                   As SldWorks.SldWorks
    Dim swModel                 As SldWorks.ModelDoc2
    Dim vDepend                 As Variant
    Dim i                       As Long
    
    Set swApp = CreateObject("SldWorks.Application")
    Set swModel = swApp.ActiveDoc
    
    vDepend = swModel.Extension.GetDependencies(True, True, True, True, True)
    
    Debug.Print swModel.GetPathName
    For i = 0 To (UBound(vDepend)) / 3 - 1
        Debug.Print "    " + vDepend(2 * i + i) + " --> Read-only: " + vDepend(2 * i + (i + 2))
    Next i
End Sub
 
            Remarks
 
            
            See Also
 
            Availability
SOLIDWORKS 2018 FCS, Revision Number 26.0