jwalz
Computer
- Apr 22, 2003
- 10
Is there a way to launch SolidWorks from the command line? I have an Access database with lists of drawing files in it. I want to be able to have a user click on the drawing name and have solidworks open the file automatically.
My VBA code currently looks like this:
Private Sub DrawingName_DblClick(Cancel As Integer)
'Open solidworks with the appropriate drawing
strFilename = Me.DrawingFile
x = Shell(strFilename, 1)
End Sub
But I get an error message that says "invalid file or procedure call." The file name variable contains the full path information. Can anyone tell me what I am doing wrong or make suggestions?
Thanks,
Janet
My VBA code currently looks like this:
Private Sub DrawingName_DblClick(Cancel As Integer)
'Open solidworks with the appropriate drawing
strFilename = Me.DrawingFile
x = Shell(strFilename, 1)
End Sub
But I get an error message that says "invalid file or procedure call." The file name variable contains the full path information. Can anyone tell me what I am doing wrong or make suggestions?
Thanks,
Janet