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

2019-06-12 Thread Jayesh Jain
Hey Max, How did u manage to run the VB scripts to control CST via python Can you help me out with that Thanks and Regards Jayesh Jain ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

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

2017-04-28 Thread Max Landaeus
Hi, I wrote some code to control CST a couple of years ago. It was quite difficult to interface via COM, since some commands simply refused to work. What I did in the end was to as few com-calls as possible and did the rest in VB. Even if VB is a terrible language the end result was more sta

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

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

2017-04-25 Thread Joni Orponen
On Tue, Apr 25, 2017 at 6:48 PM, Tim Roberts wrote: > gowri shankar wrote: > > > ** > > > > MATLAB commands work perfectly wihtout any fuss. > > *I have translated the above code in python but i was able to talk to > > CST w

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

2017-04-25 Thread Tim Roberts
gowri shankar wrote: > ** > > MATLAB commands work perfectly wihtout any fuss. > *I have translated the above code in python but i was able to talk to > CST with only first 2-3 commands i.e* > *