tazengr
Mechanical
- Mar 1, 2007
- 34
Hello,
I am trying to automate the process of mass creating parts.
What I would like to do is write a VB command that tells windows to launch pro/engineer in no graphics mode and run a trail file that is called mytrail_1.txt
I can run that trail file in pro/engineer in no graphics mode from the command line using:
"C:\Program Files\proeWildfire 3.0\bin\proe.exe" -g:no_graphics Mytrail_1.txt
and it runs fine.
However I took the same shell command and put it in VB as follows:
Private Sub Command1_Click()
Shell "C:\Program Files\proeWildfire 3.0\bin\proe.exe" - g: no_graphics Mytrail_1.txt, vbNormalFocus
End Sub
however i get an error saying
Compile error: Variable not defined
and the g before no graphics is highlighted
Note that I can launch pro/engineer from VB using:
Private Sub Command1_Click()
Shell "C:\Program Files\proeWildfire 3.0\bin\proe.exe", vbNormalFocus
End Sub
and no problems, but I would like to start and run that trail file in no graphics mode.
Any ideas?
Regards,
Taz Engr
I am trying to automate the process of mass creating parts.
What I would like to do is write a VB command that tells windows to launch pro/engineer in no graphics mode and run a trail file that is called mytrail_1.txt
I can run that trail file in pro/engineer in no graphics mode from the command line using:
"C:\Program Files\proeWildfire 3.0\bin\proe.exe" -g:no_graphics Mytrail_1.txt
and it runs fine.
However I took the same shell command and put it in VB as follows:
Private Sub Command1_Click()
Shell "C:\Program Files\proeWildfire 3.0\bin\proe.exe" - g: no_graphics Mytrail_1.txt, vbNormalFocus
End Sub
however i get an error saying
Compile error: Variable not defined
and the g before no graphics is highlighted
Note that I can launch pro/engineer from VB using:
Private Sub Command1_Click()
Shell "C:\Program Files\proeWildfire 3.0\bin\proe.exe", vbNormalFocus
End Sub
and no problems, but I would like to start and run that trail file in no graphics mode.
Any ideas?
Regards,
Taz Engr