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

微波射频仿真设计   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 >
               Shape Creation Methods                   


Shape Creation Methods

These methods create virtual shapes within the footprint. While these shapes mirror actual primitives, they are drawn only and are not selectable or editable. All length values are in the current units of the footprint.

 

NewArc(layer, cx, cy, r, ang1, ang2, lw)

Creates an arc in the footprint, returns a geometry object.

Parameters:

      Layer: In integer id retrieved from GetLayerID

      Cx: Center x coordinate

      Cy: Center y coordinate

      R: Radius of arc centerline

      Ang1: Start angle of arc (in degrees)

      Ang2: Stop angle of arc going CCW

      Lw: Line width of arc

Example:

      var geom = LayoutHost.NewArc(layerID, 0, 0, r, 0, 90, w);

 

NewArcLine(layer, cx, cy, r, ang1, ang2, lw, end)

Creates an arc line in the footprint, returns a geometry object.

Parameters:

      Layer: In integer id retrieved from GetLayerID

      Cx: Center x coordinate

      Cy: Center y coordinate

      R: Radius of arc centerline

      Ang1: Start angle of arc (in radians)

      Ang2: Stop angle of arc going CCW

      Lw: Line width of arc

      End: End style. Possible end styles are: flat, extended, round.

Example:

      var geom = LayoutHost.NewArcLine(layerID, 0, 0, r, 0, 90, w, “flat”);

 

NewCircle(layer, cx, cy, r)

Creates a circle in the footprint, returns a geometry object.

Parameters:

      Layer: In integer id retrieved from GetLayerID

      Cx: Center x coordinate

      Cy: Center y coordinate

      R: Radius of circle

Example:

      var geom = LayoutHost.NewCircle(layerID, 0, 0, r);

 

NewLine(layer, points, lw, join, end)

Creates a polyline in the footprint, returns a geometry object.

Parameters:

      Layer: In integer id retrieved from GetLayerID

      Points: A PointsObject populated with the points desired

      Lw: Linewidth

      Join: Join style. Possible join styles are: corner, miter, round.

      End: End style. Possible end styles are: flat, extended, round.

      (Passing an empty string will default to round for Join or End style.)

Example:

      var geom = LayoutHost.NewLine(layerID, pts, w, “corner”, “flat”);

 

NewPoly(layer, points)

Creates a polygon in the footprint, returns a geometry object.

Parameters:

      Layer: In integer id retrieved from GetLayerID.

      Points: A PointsObject populated with the points desired

Example:

      var geom = LayoutHost.NewPoly(layerID, pts);

 

NewRect(layer, cx, cy, width, height, angle)

Creates a rectangle in the footprint, returns a geometry object.

Parameters:

      Layer: In integer id retrieved from GetLayerID

      Cx: Center x coordinate

      Cy: Center y coordinate

      Width: Width of rect

      Height: Height of rect

      Angle: Rotation angle to draw rect (in radians)

Example:

      var geom = LayoutHost.NewRect(layerID, 0, 0, w, h, 0);

 

NewText(layer, text, x, y, font, size, angle, just)

Creates text in the footprint, returns a geometry object.

Parameters:

      Layer: An integer id retrieved from GetLayerID

      Text: The text string

      X: Text x placement position

      Y: Text y placement position

      Font: Text font; may be left blank (on system layers, e.g. "Symbols", a system font must be used, else specify a plotter font e.g. "RomanDuplex").

      Size: Text height (in length units for a plotter font; in points for a system font)

      Angle: The text angle (in radians)

      Just: Text justification relative to the placement position: "LeftTop", "LeftBase", "LeftBottom", "CenterTop", "CenterBase", "CenterBottom", "RightTop", "RightBase", "RightBottom"

Example:

      var text = LayoutHost.NewText(layer, "Text", 2, -1, "", 1, 0, "LeftBase");




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

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


 

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