Gets the path name for the macro currently running.
.NET Syntax
| Visual Basic (Declaration) | |
|---|
Function GetCurrentMacroPathName() As String |
| Visual Basic (Usage) | |
|---|
Dim instance As ISldWorks
Dim value As String
value = instance.GetCurrentMacroPathName()
|
| C# | |
|---|
string GetCurrentMacroPathName() |
| C++/CLI | |
|---|
String^ GetCurrentMacroPathName(); |
Return Value
Path name for the macro currently running
Example
'-----------------------------------------------------
Option Explicit
Sub main()
Dim swApp As SldWorks.SldWorks
Set swApp = Application.SldWorks
Debug.Print "Macro file path name = " & swApp.GetCurrentMacroPathName
End Sub
'-----------------------------------------------------
Example
See Also
Availability
SolidWorks 2006 SP1, Revision Number 14.1