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

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

 

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

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


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


Generating Reports and Postprocessing >
User Defined Outputs: Python Script API >
   Working With Properties for UDO >
       IMenuProperty Abstract class           


IMenuProperty Abstract class

Base class:

• abstract class IProperty

Attributes:

• MenuSelection (int): This represents the index into the MenuChoices list.

• SelectedMenuChoice (string): This is the item in the MenuChoices list corresponding to the MenuSelection index

• MenuChoices (IList<string>)

Constructor:

• IMenuProperty (string name)

Example:

 

# adding data to IPropertyList propList; used in Compute function

prop = propList.AddNumberProperty('Offset 1', '0')

prop.Description = 'Trace 1 Offset'

prop = propList.AddNumberProperty(“TRATE”, "800 MHz")

prop.Description = "Frequency"

prop = propList.AddTextProperty(“Text”, “The Text”)

prop.Description = "Text Property"

prop = propList.AddMenuProperty('Operation', ['Add', 'Subtract', 'Max' ,'Min','Mean'])

prop.Description = 'Operation menu’

 

# reading data from IPropertyList propList; used in Validate function

numOfNumberProperties = 0

if propList != None and propList.AllProperties != None:

for prop in propList.AllProperties:

if prop.PropType == Constants.EPropType.PT_NUMBER:

numOfNumberProperties ++




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

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


 

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