淘宝官方店     推荐课程     在线工具     联系方式     关于我们  
 
 

微波射频仿真设计   Ansoft Designer 中文培训教程   |   HFSS视频培训教程套装

 

Agilent ADS 视频培训教程   |   CST微波工作室视频教程   |   AWR Microwave Office

          首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档


Ansoft Designer / Ansys Designer 在线帮助文档:


Script Guide >
Desktop Scripting with IronPython >
   Scripting Using Iron Python: Putting it all Together >
       IronPython Script Execution Environment >
           Methods for IronPython               


Methods for IronPython

A collection of methods is made available to all python scripts to enable the use of existing scripts written in VBScript or Javascript. Additional utility methods to add messages to the desktop message window are also present.

•  AddErrorMessage(str), AddWarningMessage(str), AddInfoMessage(str) and AddFatalMessage(str) this family of methods allows a script to add messages to the product’s message window. All methods take a python string.

•  RunScriptFile(filename) runs the contents of the supplied file as a script. The type of the script (Javascript/VBScript) is deduced from the file extension.

•  SetScriptingLanguageToJavascript(), SetScriptingLanguageToVBScript() allows the script to change the syntax of the language being used in the Run*Command commands listed below. Once set, the language choice remains for the rest of the script execution or till it is changed. The default is VBScript.

•  RunScriptCommand(CommandString) runs the supplied script text. The language of the text is controlled by a previous call to SetScriptingLanguageToJavascript() or SetScriptingLanguageToVBScript()

Related Topics

IronPython Script Execution Environment

 




HFSS视频教学培训教程 ADS2011视频培训教程 CST微波工作室教程 Ansoft Designer 教程

                HFSS视频教程                                      ADS视频教程                               CST视频教程                           Ansoft Designer 中文教程


 

      Copyright © 2006 - 2013   微波EDA网, All Rights Reserved    业务联系:mweda@163.com