Re: [python-win32] To control commercial software CST through python

2017-04-27 Thread Tim Roberts
On Apr 27, 2017, at 11:17 PM, gowri shankar wrote: > > I checked both the ways without any success. By the by, mws.EigenmodeSolver() > works perfectly in MATLAB. Does the object name changes with different > language. It's not impossible. You're using late binding here, which has to find the

Re: [python-win32] To control commercial software CST through python

2017-04-27 Thread Tim Roberts
On Apr 27, 2017, at 12:02 PM, gowri shankar mailto:gowrishankarman...@gmail.com>> wrote: Thanks for bringing out my inadequacies. By the by i am using Python 2.7.8 |Anaconda 2.1.0 (64-bit). Here are the error codes for the same: import win32com.client cst = win32com.client.Dispatch("CSTStudio.

Re: [python-win32] To control commercial software CST through python

2017-04-27 Thread Tim Roberts
gowri shankar wrote: > > Thanks for bringing out my inadequacies. By the by i am using Python > 2.7.8 |Anaconda 2.1.0 (64-bit). > Here are the error codes for the same: > > import win32com.client > *cst* = win32com.client.Dispatch("CSTStudio.Application") > #Opens a new CST file > *mws*=*cst*.Open

Re: [python-win32] To control commercial software CST through python

2017-04-27 Thread Tim Roberts
gowri shankar wrote: > > /*I was not able to convert these following MATLAB commands into > python. I got errors.* / > /mws.invoke('StoreParameter','a',a); %These are the COM interface > commands from MATLAB to CST/ > /mws.invoke('StoreParameter','b',b);/ > /mws.invoke('StoreParameter'

Re: [python-win32] To control commercial software CST through python

2017-04-27 Thread gowri shankar
Thanks for the suggestion guys. But, my problem is, i am able to open CST from Python but other commands which works in MATLAB don't work in python. MATLAB commands** *cst = actxserver('CSTStudio.application') % to open the CST* *mws=cst.OpenFile('D:\Gowris