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

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

 

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

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


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


Script Guide >
Designer and VBScript >
   Event Callback Scripting       


Event Callback Scripting

Event 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.


[spacer]

Callback Event

Scripts Visible from the
Event Callback Script

Functions Callable
from the Visible Script

Place Component

CompInstance

CompInstance.GetParentDesign() — Returns a oDesign item that can be used to call Design functions.

 

CompInstance.GetPropserverName() — Returns a CompInstance identification name that can be used in oEditor property-method scripts, such as GetPropertyValue(), SetPropertyValue(), etc.

 

CompInstance.GetComponentName() — Returns the component name, e.g. “MS_TRL”.

Simulate Component

CompInstance

CompInstance.GetDesign() — Returns the interface to the specified design simulation.

 

CompInstance.GetProgress() — Returns the completion percentage (from 0 to 100) of the specified design simulation.

 

CompInstance.GetRunStatus() — Returns the status number of the specified design simulation.

 

CompInstance.Abort() — Aborts the specified design simulation.


 

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视频教学培训教程 ADS2011视频培训教程 CST微波工作室教程 Ansoft Designer 教程

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


 

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