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
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
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
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.
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
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'
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
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
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*
> *