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

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

 

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

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


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


Script Guide >
Desktop Scripting with IronPython >
   Translating Script commands from VBScript to IronPython >
       Converting VBScript Function calls to IronPython Syntax >
           Named Arrays with Nested Named Arrays               


Named Arrays with Nested Named Arrays

•  Split the “NAME:name” field into a key value pair

•  Translate array key value pair to a dictionary key value pair.

•  Create a new key with the name of the nested array and keep the nested array (as an array or as a dictionary) as its value. If the nested array is being retained as an array, the”NAME:name field should be retained in the array. If the nested array is being converted to a dictionary, the name is optional: if also retained in the nested array, it must match the outer key.

 

[ “NAME:name”,

“key1:=” , 1,

“key2:=” , 2,

[“NAME:name2”, “R:=”, 255]

]

Sample Script 7: Named array with nested named array in array syntax

The above named array with a nested named array (after conversion to IronPython as named array) can be converted to a dictionary as well. The dictionary can take any of the following forms

{ “NAME” : “name”,

“key1” : 1,

“key2” : 2,

“name2” : [“NAME:name2”, “R:=”, 255]

}

Sample Script 8: Named array with nested named array as mixed dictionary + array

 

{ “NAME” : “name”,

“key1” : 1,

“key2” : 2,

“name2” : {“R” : 255}

}

Sample Script 9: Named array with nested named array in all dictionary syntax

 

{ “NAME” : “name”,

“key1” : 1,

“key2” : 2,

“name2” : {

“NAME” : “name2”,

“R” : 255

}

}

Sample Script 10: Nested named array with optional "NAME:" field

Related Topics

Converting VBScript Function calls to IronPython Syntax

 




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

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


 

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