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

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

 

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

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


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


Using Component Libraries >
Using the Footprint Editor >
   Using Scripts to Define Footprints in Layout >
       LayoutHost Object >
           LayoutHost Methods >
               General Methods                   


General Methods

 

GetDefinitionType()

Returns an integer which indicates the type of shape used to define a shape-based footprint. This type of footprint allows the user to draw a shape such as a rectangle or polygon and then the script would use this definition to create a footprint. The method GetDefinitionPoints is then used to retrieve the points input by the user to define the shape’s outline.

Example:

      var shapeType = LayoutHost.GetDefinitionType();

 

Possible shapes are:

      0: Single point

      1: Rect

      2: Polyline

      3: Polygon

 

GetDefinitionPoints()

Returns a PointsObject containing the points defining an outline for a shaped-based footprint. This method is used along with GetDefinitionType to retrieve the information needed regarding the base shape used in order to define the footprint.

Example:

      var outline = LayoutHost.GetDefinitionPoints();

 

GetLastError()

Returns an integer id regarding the last function call which changes the footprint. Functions which change the footprint include those creating geometry, and those altering pins. A non-zero result indicates an error occurred. Zero is returned for success.

Example:

      var error = LayoutHost.GetLastError();

 

GetLayerID(name)

Returns an integer id for the given name. If a layer with “name” is not found, then a -1 is returned. The name is not case-sensitive.

Example:

      var layerID = LayoutHost.GetLayerID(“Top”);

 

CreatePointsObject()

Creates and returns an empty PointsObject. Points can then be added to this object which in turn is passed as a parameter to certain primitive creation functions.

Example:

      var pts = LayoutHost.CreatePointsObject();

 




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

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


 

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