Gets the name of the user who has the the specified document open.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function GetCurrentFileUser( _
ByVal FilePathName As System.String _
) As System.String |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim FilePathName As System.String
Dim value As System.String
value = instance.GetCurrentFileUser(FilePathName) |
C# | |
---|
System.string GetCurrentFileUser(
System.string FilePathName
) |
C++/CLI | |
---|
System.String^ GetCurrentFileUser(
& System.String^ FilePathName
) |
Parameters
- FilePathName
- Full path and filename of the document
Example
Visual Basic for Applications (VBA)
'-----------------------------------
Option Explicit
Dim swApp As SldWorks.SldWorks
Sub main()
Set swApp = Application.SldWorks
' Substitute your path and filename
Debug.Print swApp.GetCurrentFileUser("C:\temp\b&r.sldprt")
End Sub
'-----------------------------------
See Also
Availability
SOLIDWORKS 2009 FCS, Revision Number 17.0