首页 / design / oaLayerRangeBlockage

oaLayerRangeBlockage

模块: oapy._oa._design 导入: from oapy._oa import _design

概览

oaLayerRangeBlockageoapy 中可用,可通过 _design 模块访问。

本页汇总 oaLayerRangeBlockage 当前在 oapy 中可用的 Python 接口。

详细说明

An oaLayerRangeBlockage is a blockage over a set of layers。 The set of layers is determined from a range of mask numbers that is specified when the blockage is created。 The layers are not required to exist in the technology data associated with the design that the blockage is created in。 The mask numbers of layers are ordered, but their corresponding layer numbers may not be ordered。 A mask number can also map to one or more layers。 A mask range can be specified by a pair of lower and upper bound mask numbers, or a mask range can be an unbounded range where only the lower bound mask number is specified。 The resulting blockage applies to a set of layers that correspond to the specified mask range。 OpenAccess determines what those layers are under different conditions。 The blockage shape is specified by a point array, which must correspond to a closed figure consisting of at least three points。

方法总览

状态 Python 调用
obj.getMaskRange(maskRange)
obj.getLayerHeaders(layerHeaders)
obj.setMaskRange(maskRange)
obj.setPoints(points)
obj.transform(scale, angle)
_design.oaLayerRangeBlockage.create(block, type, maskRange, points, owner=NULL)

方法说明

obj.getMaskRange(maskRange)

绑定状态: 已绑定

Python 调用: obj.getMaskRange(maskRange)

This function returns the mask range associated with this blockage。

参数

  • maskRange: The returned range of this layer range blockage。

Python 示例

from oapy._oa import _design

# assume obj is a oaLayerRangeBlockage
obj.getMaskRange(maskRange)

obj.getLayerHeaders(layerHeaders)

绑定状态: 已绑定

Python 调用: obj.getLayerHeaders(layerHeaders)

This function returns the set of layerHeaders for this layer blockage。 The mask number of every layer header's layer in this array falls within the mask range of this blockage。

参数

  • layerHeaders: The returned layer header array。

Python 示例

from oapy._oa import _design

# assume obj is a oaLayerRangeBlockage
obj.getLayerHeaders(layerHeaders)

obj.setMaskRange(maskRange)

绑定状态: 已绑定

Python 调用: obj.setMaskRange(maskRange)

This function sets the mask range of this blockage to the specified mask range。 New layerHeaders are created if they do not exist and if the design has a tech with layers whose mask numbers fall in the range of the specified mask number。 The blockage is removed from the current set of layerHeaders。

参数

  • maskRange: An oaIntRange value of type oacClosedRangeType or oacGreaterThanRangeType。

异常

  • oacInvalidMaskRangeForLayerRangeBlockage

Python 示例

from oapy._oa import _design

# assume obj is a oaLayerRangeBlockage
obj.setMaskRange(maskRange)

obj.setPoints(points)

绑定状态: 已绑定

Python 调用: obj.setPoints(points)

This function sets the point array for this blockage to the specified array of points。 The point array is validated prior to being set, and it must be a closed figure with a minimum of three points。

参数

  • points: The array of points defining the blockage。

Python 示例

from oapy._oa import _design

# assume obj is a oaLayerRangeBlockage
obj.setPoints(points)

obj.transform(scale, angle)

绑定状态: 已绑定

Python 调用: obj.transform(scale, angle)

This function transforms this blockage by the specified scale factor and rotation angle。 If this blockage is a leader in a group, each object in the group is moved with the specified transform。

参数

  • scale: A multiplier used to scale the blockage。
  • angle: The angle of rotation expressed in radians。

Python 示例

from oapy._oa import _design

# assume obj is a oaLayerRangeBlockage
obj.transform(scale, angle)

_design.oaLayerRangeBlockage.create(block, type, maskRange, points, owner=NULL)

绑定状态: 已绑定

Python 调用: _design.oaLayerRangeBlockage.create(block, type, maskRange, points, owner=NULL)

This function creates an oaLayerRangeBlockage that applies for the layers in the specified mask number range。 This blockage applies to the set of layers that correspond to the specified range of mask numbers or to all layers above a single specified mask number。 The blockage type may be any oaBlockageType except oacPlacementBlockageType。 The owner may be either an oaCluster or oaBoundary object or null。

参数

  • block: A design container。
  • type: The type of the blockage。
  • maskRange: An oaIntRange value of type oacClosedRangeType or oacGreaterThanRangeType。
  • points: The array of points defining the blockage。
  • owner: The optional cluster or boundary owner of the blockage。

异常

  • oacInvalidMaskRangeForLayerRangeBlockage
  • oacInvalidTypeForLayerBlockage

Python 示例

from oapy._oa import _design

_design.oaLayerRangeBlockage.create(block, type, maskRange, points, owner=NULL)