- 易迪拓培训,专注于微波、射频、天线设计工程师的培养
Controlling CST from Python
录入:edatop.com 点击:
Hi all,
I want to control/automate CST MWS from python. I have seen the code for MATLAB where the control is done by writing a VBA script from MATLAB or directly using the COM commands.
But i would like to wish to use python to control CST using COM commands. As i see COM commands of CST are not openly available, the material i obtained was only for the MATLAB. Is there a way to convert MATLAB COM commands to Python COM commands for CST. I was able to open the CST file as mentioned in this thread
https://www.edaboard.com/showthread.php?t=354295.
However i failed to progress further. Like setting a parameter, geometric modelling, changing the units, adding the contents to History and so on.
Can someone guide me the approach i should take or some materials which will be useful to me?
I want to control/automate CST MWS from python. I have seen the code for MATLAB where the control is done by writing a VBA script from MATLAB or directly using the COM commands.
But i would like to wish to use python to control CST using COM commands. As i see COM commands of CST are not openly available, the material i obtained was only for the MATLAB. Is there a way to convert MATLAB COM commands to Python COM commands for CST. I was able to open the CST file as mentioned in this thread
https://www.edaboard.com/showthread.php?t=354295.
Code:
import win32com.client cst = win32com.client.Dispatch("CSTStudio.Application") #Opens a new CST file #we can open a particular file from this line mws=cst.OpenFile("D:\Gowrishankar\MatlabControlsCST\CSTfiles\CylindricalCavity.cst")
Can someone guide me the approach i should take or some materials which will be useful to me?
申明:网友回复良莠不齐,仅供参考。如需专业解答,请学习易迪拓培训专家讲授的CST视频培训教程。
上一篇:How to assign Alloy as a material in CST?
下一篇:CST tetrahedral mesh LOOKS weird