thread560-65187
Hi Everyone I have created one macro in Visual studio and converted it to .exe. I saw on a forum (thread560-65187) that it is working but on my Catia it doesn`t
The macro that I created works fine when I click it directly on .exe file, but with the following macros that I found on Forum it doesn't
Can anyone please help
Here are the Catscript Macros that I tried but it doesn`t work:
1.
Sub CATMain()
Dim RetVal
RetVal = Shell("C:\Users\adobrosa\Desktop\New folder\WinFormsApp1\WinFormsApp1\bin\Debug\net5.0-windows\WinFormsApp1.exe", 1)
End Sub
- here I have a message "Type mismatch Shell"
2.
Sub CATMain()
CATIA.SystemService.ExecuteBackgroundProcessus ("C:\Users\adobrosa\Desktop\New folder\WinFormsApp1\WinFormsApp1\bin\Debug\net5.0-windows\WinFormsApp1.exe")
End Sub
- Here I have the message " The method ExecuteBackgroung Processus failed"
3.
Sub CATMain()
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run("C:\Users\adobrosa\Desktop\New folder\WinFormsApp1\WinFormsApp1\bin\Debug\net5.0-windows\WinFormsApp1.exe")
End Sub
4.
Sub CATMain()
dim sh,s
Set sh = CreateObject("WScript.Shell")
s ="C:\Users\adobrosa\Desktop\New folder\WinFormsApp1\WinFormsApp1\bin\Debug\net5.0-windows\WinFormsApp1.exe"
sh.Run s, 1, false
End Sub
Hi Everyone I have created one macro in Visual studio and converted it to .exe. I saw on a forum (thread560-65187) that it is working but on my Catia it doesn`t
The macro that I created works fine when I click it directly on .exe file, but with the following macros that I found on Forum it doesn't
Can anyone please help
Here are the Catscript Macros that I tried but it doesn`t work:
1.
Sub CATMain()
Dim RetVal
RetVal = Shell("C:\Users\adobrosa\Desktop\New folder\WinFormsApp1\WinFormsApp1\bin\Debug\net5.0-windows\WinFormsApp1.exe", 1)
End Sub
- here I have a message "Type mismatch Shell"
2.
Sub CATMain()
CATIA.SystemService.ExecuteBackgroundProcessus ("C:\Users\adobrosa\Desktop\New folder\WinFormsApp1\WinFormsApp1\bin\Debug\net5.0-windows\WinFormsApp1.exe")
End Sub
- Here I have the message " The method ExecuteBackgroung Processus failed"
3.
Sub CATMain()
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run("C:\Users\adobrosa\Desktop\New folder\WinFormsApp1\WinFormsApp1\bin\Debug\net5.0-windows\WinFormsApp1.exe")
End Sub
4.
Sub CATMain()
dim sh,s
Set sh = CreateObject("WScript.Shell")
s ="C:\Users\adobrosa\Desktop\New folder\WinFormsApp1\WinFormsApp1\bin\Debug\net5.0-windows\WinFormsApp1.exe"
sh.Run s, 1, false
End Sub