Gets the document opened first in this SolidWorks session.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function GetFirstDocument() As System.Object |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim value As System.Object
value = instance.GetFirstDocument() |
C# | |
---|
System.object GetFirstDocument() |
C++/CLI | |
---|
System.Object^ GetFirstDocument(); |
Return Value
Document first opened
Example
Option Explicit
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Sub main()
Set swApp = Application.SldWorks
' Get document opened first in this SolidWorks session
Set swModel = swApp.GetFirstDocument
' Print name of document opened first in this SolidWorks session
Debug.Print swModel.GetPathName
End Sub
Example
Remarks
See Also
Availability
SolidWorks 98Plus, datecode 1998319