Files
Run individual SolidWorks commands
Code
'Demonstrates how to run individual commands using ISldWorks::RunCommand
'Preconditions: part is open
'Results: Fillet feature PMP is opened; see also immediate window
'Written by Keith Rice
'CADSharp LLC
'www.cadsharp.com
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim lngID As Long
Dim strPMPTitle As String
Dim blnUIactive As Boolean
Sub main()
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
swApp.RunCommand swCommands_Fillet, "Test"
swApp.GetRunningCommandInfo lngID, strPMPTitle, blnUIactive
Debug.Print lngID
Debug.Print strPMPTitle
Debug.Print blnUIactive
End Sub