I am working on a python script which opens the CATIA application, runs the .CATscript, outputs a CAD file in .stp format and then used by Hypermesh, which will give out the meshed file of the geometry. However when I try to run the script, it says Dispatch error.
import win32com.client catapp = win32com.client.Dispatch('CATIA.Application')
os.system(executableCatiaVBS)
The error that appears is
comerror: (-2147221005, 'Ung\xfcltige Klassenzeichenfolge', None, None)