淘宝官方店 推荐课程 在线工具 联系方式 关于我们 | |
微波射频仿真设计 Ansoft Designer 中文培训教程 | HFSS视频培训教程套装 |
|
首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档 |
Script Guide > Event Callback ScriptingEvent Callback scripting allows you to define custom JavaScript and VBScript routines that will run automatically after a triggering event in Designer is detected, events such as placing a component or running a simulation. When you define an Event Callback script, you specify one or more scripts that will be run after a particular Designer event is detected. For more information see Event Callbacks. A callback script can only access functions and other scripts defined by its callback definition. For example, a callback script can call PropHost.GetValue — and all other PropHost functions — but only from scripts defined in the Property Dialog callback. As a result, “PropHost” is a script item that is only visible in “Property” callback scripts. For more information, see Callback Scripting Using PropHost Object and Callback Scripting Using CompInstance Object.
The following table lists allowable callback events, items that are visible from the associated callback script, and the set of accessible functions that can be called.
The Designer function, ExecuteAnsoftScript(<ScriptName>), searches the configured Designer script libraries by name for the script passed to it, and invokes the found ScriptName. The invoked script will run with the same set of visible script items as the originally called script. That is, CompInstance is visible from the invoked sub-script, ScriptName, and CompInstance’s functions can be called from ScriptName. HFSS视频教程 ADS视频教程 CST视频教程 Ansoft Designer 中文教程 |
Copyright © 2006 - 2013 微波EDA网, All Rights Reserved 业务联系:mweda@163.com |