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

Tim Roberts timr at probo.com
Fri Apr 28 02:36:41 EDT 2017


On Apr 27, 2017, at 11:17 PM, gowri shankar <gowrishankarmandya at gmail.com> 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 entry points by doing a text search.  However, the web seems to indicate that your spelling is correct.


> Can you please suggest any literature or source where i can learn more on COM .

There are an infinite number of books and websites on COM; the technology has been around for more than 20 years.  However, the different language bindings do have different requirements and implications, so a C++-based book will be good background information, but won't help specifically with Python.

As an experiment, you might try using EnsureDispatch instead of just Dispatch.
    from win32com.client.genache import EnsureDispatch
That creates and saves a Python module to interface to the object.  Sometimes having that module can be helpful in debugging.
— 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list