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

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

 

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

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


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


Script Guide >
Designer and VBScript >
   Designer Scripting Conventions >
       Named Arguments           


Named Arguments

Many Designer script commands use named arguments. The names can appear in three ways:

 

1. Named data, name precedes data.

For example: ...,"PortSolver:=", true, ...

 

2. Named Array, name precedes array.

For example: ...,"Attributes:=", Array(...),...

 

3. Named Array, name inside array.

For example: ..., Array("NAME:Attributes",...),...

 

In the first and second examples, the name is formatted as “<Name>:=”. This signals Designer that this is a name for the next argument in the script command. In the third example, the name is formatted as “NAME:<name>” and is the first element of the Array.

 

The names are used both to identify what the data means to you and to inform Designer which data is being given. The names must be included or the script will not play back correctly. However, if you are writing a script, you do not need to pass in every piece of data that the command can take. For example, if you are modifying a boundary, the script will be recorded to include every piece of data needed for the boundary, whether or not it was modified. If you are writing a script by hand, you can just add the data that changed and omit anything that you do not want to change. Designer will use the names to determine which data you provided.

 

For example, when editing a port excitation, Designer records the ‘edit port’ command as follows:

oModule.Edit "Port1", Array("NAME:Port1",Array("NAME:Properties", "PortSolver:=", "true", "Phase:=", "0deg", "Magnitude:=", "2mA", "Impedance:=", "50Ohm", "Theta:=", "0deg", "Phi:=", "0deg", "PostProcess:=", "false", "Renormalize:=", "50Ohm + 0i Ohm", "Deembed:=", "0mm", "RefToGround:=", "false"), "Type:=", "EdgePort", "IsGapSource:=", true, "UpperProbe:=", false, "LayoutObject:=", "Port1", "Pin:=", "", "ReferencePort:=", "")

 

If you only want to change the magnitude, then you can leave out the other data arguments when you are manually writing a script:

oModule.Edit "Port1", Array("NAME:Port1", Array ("Magnitude:=", "1mA"))




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

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


 

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