首页 / tech / oaViaParam

oaViaParam

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

概览

oaViaParamoapy 中可用,可通过 _tech 模块访问。

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

详细说明

The oaViaParam class implements a set of standard via parameters used to create and manipulate standard via ( oaStdVia ) or standard via definition ( oaStdViaDef ) objects in the design and technology databases。 oaViaParam objects are utility objects and are not persistent by themselves。 For information about using oaViaParam objects to create oaStdViaDef and oaStdVia objects, refer to Representing Vias in OpenAccess in the Programmers Guide。

构造函数

_tech.oaViaParam()

obj = _tech.oaViaParam()

_tech.oaViaParam(paramIn)

obj = _tech.oaViaParam(paramIn)

方法总览

状态 Python 调用
obj.getLayer1Enc()
obj.getLayer2Enc()
obj.getImplant1Enc()
obj.getImplant2Enc()
obj.getLayer1Offset()
obj.getLayer2Offset()
obj.getCutSpacing()
obj.getOriginOffset()
obj.getCutWidth()
obj.getCutHeight()
obj.getCutLayer()
obj.getCutColumns()
obj.getCutRows()
obj.getCutPatternVal(cutRowNum, cutColNum)
obj.hasDefaultCutPattern()
obj.setLayer1Enc(layer1Enc)
obj.setLayer2Enc(layer2Enc)
obj.setImplant1Enc(imp1Enc)
obj.setImplant2Enc(imp2Enc)
obj.setLayer1Offset(layer1Offset)
obj.setLayer2Offset(layer2Offset)
obj.setCutSpacing(cutSpacing)
obj.setOriginOffset(originOffset)
obj.setCutWidth(width)
obj.setCutHeight(height)
obj.setCutLayer(cutLayer)
obj.setCutColumns(cutColumns)
obj.setCutRows(cutRows)
obj.setDefaultCutPattern()
obj.setCutPatternVal(cutRowNum, cutColNum, val)
obj.hasDefault(paramType)
obj.hasAnyDefaults()
obj.setDefault(paramType)
obj.setAllNonDefault()
obj.isEqual(params)
obj.operator=(params)
obj.operator==(param)
obj.operator!=(param)

方法说明

obj.getLayer1Enc()

绑定状态: 已绑定

Python 调用: obj.getLayer1Enc()

This function returns the width and height of the layer1 enclosure as a reference to an oaVector object whose x and y values indicate the width and height, respectively。 This enclosure is relative to the bounding box of the via cut matrix, which may consist of a single cut。 When an oaViaParam is associated with an oaStdViaDef , the x and y values indicate that the cut must be enclosed by layer 1 by at least the value of x on both sides in one direction, and by at least the value of y on both sides in the opposite direction。 When an oaViaParam is associated with an oaStdVia , the x value literally indicates enclosure in the x direction, and the y value literally indicates enclosure in the y direction。 When applications use an oaStdViaDef to create an oaStdVia , they can use the enclosure values provided in the oaStdViaDef's oaViaParams, but should choose the direction of the enclosure that best maximizes the number of cuts that can fit in the oaStdVia being created。 The direction chosen must then be specified in the x,y vector associated with the oaStdVia's oaViaParam enclosure attribute。 Refer to Layer1 Enclosure in the Programmers Guide for more information。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getLayer1Enc()

obj.getLayer2Enc()

绑定状态: 已绑定

Python 调用: obj.getLayer2Enc()

This function returns the width and height of the layer2 enclosure as a reference to an oaVector object whose x and y values indicate the width and height, respectively。 This enclosure is relative to the bounding box of the via cut matrix, which may consist of a single cut。 When an oaViaParam is associated with an oaStdViaDef , the x and y values indicate that the cut must be enclosed by layer 1 by at least the value of x on both sides in one direction, and by at least the value of y on both sides in the opposite direction。 When an oaViaParam is associated with an oaStdVia , the x value literally indicates enclosure in the x direction, and the y value literally indicates enclosure in the y direction。 When applications use an oaStdViaDef to create an oaStdVia , they can use the enclosure values provided in the oaStdViaDef's oaViaParams, but should choose the direction of the enclosure that best maximizes the number of cuts that can fit in the oaStdVia being created。 The direction chosen must then be specified in the x,y vector associated with the oaStdVia's oaViaParam enclosure attribute。 Refer to Layer2 Enclosure in the Programmers Guide for more information。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getLayer2Enc()

obj.getImplant1Enc()

绑定状态: 已绑定

Python 调用: obj.getImplant1Enc()

This function returns the width and height of the implant enclosure for implant1 layer as a reference to an oaVector object whose x and y values indicate the width and height, respectively。 This enclosure is relative to the bounding box of the shape on layer1。 When an oaViaParam for an implant1 enclosure is associated with an oaStdViaDef , the x and y values indicate that layer1 must be enclosed by at least the value of x on both sides in one direction, and by at least the value of y on both sides in the opposite direction。 When an oaViaParam is associated with an oaStdVia , the x value literally indicates enclosure in the x direction, and the y value literally indicates enclosure in the y direction。 When applications use an oaStdViaDef to create an oaStdVia , they can use the enclosure values provided in the oaStdViaDef's oaViaParams, but should choose the direction of the enclosure that best maximizes the number of cuts that can fit in the oaStdVia being created。 The direction chosen must then be specified in the x,y vector associated with the oaStdVia's oaViaParam enclosure attribute。 Refer to Implant1 Enclosure in the Programmers Guide for more information。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getImplant1Enc()

obj.getImplant2Enc()

绑定状态: 已绑定

Python 调用: obj.getImplant2Enc()

This function returns the width and height of the implant enclosure for implant2 layer as a reference to an oaVector object whose x and y values indicate the width and height, respectively。 This enclosure is relative to the bounding box of the shape on layer2。 When an oaViaParam for an implant2 enclosure is associated with an oaStdViaDef , the x and y values indicate that layer2 must be enclosed by at least the value of x on both sides in one direction, and by at least the value of y on both sides in the opposite direction。 When an oaViaParam is associated with an oaStdVia , the x value literally indicates enclosure in the x direction, and the y value literally indicates enclosure in the y direction。 When applications use an oaStdViaDef to create an oaStdVia , they can use the enclosure values provided in the oaStdViaDef's oaViaParams, but should choose the direction of the enclosure that best maximizes the number of cuts that can fit in the oaStdVia being created。 The direction chosen must then be specified in the x,y vector associated with the oaStdVia's oaViaParam enclosure attribute。 Refer to Implant2 Enclosure in the Programmers Guide for more information。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getImplant2Enc()

obj.getLayer1Offset()

绑定状态: 已绑定

Python 调用: obj.getLayer1Offset()

This function returns the current x and y offsets for the layer1 enclosure as a reference to an oaVector object whose x and y values indicate the x and y offsets, respectively。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getLayer1Offset()

obj.getLayer2Offset()

绑定状态: 已绑定

Python 调用: obj.getLayer2Offset()

This function returns the current x and y offsets for the layer2 enclosure as a reference to an oaVector object whose x and y values indicate the x and y offsets, respectively。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getLayer2Offset()

obj.getCutSpacing()

绑定状态: 已绑定

Python 调用: obj.getCutSpacing()

This function returns the x and y spacing between the cuts in the via cut matrix as an oaVector object reference。 The spacing applies only for multiple cut vias or via definitions。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getCutSpacing()

obj.getOriginOffset()

绑定状态: 已绑定

Python 调用: obj.getOriginOffset()

This function returns the originOffset specified for this oaViaParam object as a reference to an oaVector object whose x and y values indicate the x and y offsets that apply。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getOriginOffset()

obj.getCutWidth()

绑定状态: 已绑定

Python 调用: obj.getCutWidth()

This function returns the width of each cut in the via cut matrix on the cut layer for this oaViaParam object。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getCutWidth()

obj.getCutHeight()

绑定状态: 已绑定

Python 调用: obj.getCutHeight()

This function returns the height of each cut in the via cut matrix on the cut layer for this oaViaParam object。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getCutHeight()

obj.getCutLayer()

绑定状态: 已绑定

Python 调用: obj.getCutLayer()

This function returns the layer number of the cutLayer previously specified for this oaViaParam object。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getCutLayer()

obj.getCutColumns()

绑定状态: 已绑定

Python 调用: obj.getCutColumns()

This function returns the number of columns in the via cut matrix on the cutLayer for this oaViaParam object。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getCutColumns()

obj.getCutRows()

绑定状态: 已绑定

Python 调用: obj.getCutRows()

This function returns the number of rows in the via cut matrix on the cutLayer for this oaViaParam object。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getCutRows()

obj.getCutPatternVal(cutRowNum, cutColNum)

绑定状态: 已绑定

Python 调用: obj.getCutPatternVal(cutRowNum, cutColNum)

This function returns the existence of a specific cut in the via cut matrix on the cutLayer。 Each cut is identified by a cutRowNum and cutColNum indicating the row and column of the cut。 A true is returned if the cut exists and a false is returned if the cut does not exist。 Note that cutRowNum and cutColNum values start at 0 and should not exceed the number of cutRows and columns set for the oaViaParam object。 An exception is thrown if this requirement is not met。

参数

  • cutRowNum: The row number in the cut matrix, 0 being the bottom row。
  • cutColNum: The column number in the cut matrix, 0 being the left column。

异常

  • oacInvalidViaParamColumnNumber
  • oacInvalidViaParamRowNumber

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.getCutPatternVal(cutRowNum, cutColNum)

obj.hasDefaultCutPattern()

绑定状态: 已绑定

Python 调用: obj.hasDefaultCutPattern()

This function returns a boolean indicating if a default cut pattern is in effect。 A default cut pattern implies that all via cuts exist in the via cut matrix。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.hasDefaultCutPattern()

obj.setLayer1Enc(layer1Enc)

绑定状态: 已绑定

Python 调用: obj.setLayer1Enc(layer1Enc)

This function sets the width and height of the layer1 enclosure based on the specified layer1Enc oaVector object whose x and y values indicate the width and height, respectively。 This enclosure is relative to the bounding box of the via cut matrix, which may consist of a single cut。 The layer1 rectangle is generated by subtracting the layer1Enc vector from the lower left corner and adding it to the upper right corner of the cut bounding box; then the rectangle is shifted by applying the layer1 offset。 The default flag bit for the layer1 enclosure parameter is cleared。 When an oaViaParam is associated with an oaStdViaDef , the x and y values indicate that the cut must be enclosed by layer 1 by at least the value of x on both sides in one direction, and by at least the value of y on both sides in the opposite direction。 When an oaViaParam is associated with an oaStdVia , the x value literally indicates enclosure in the x direction, and the y value literally indicates enclosure in the y direction。 When applications use an oaStdViaDef to create an oaStdVia , they can use the enclosure values provided in the oaStdViaDef's oaViaParams, but should choose the direction of the enclosure that best maximizes the number of cuts that can fit in the oaStdVia being created。 The direction chosen must then be specified in the x,y vector associated with the oaStdVia's oaViaParam enclosure attribute。 Refer to Layer1 Enclosure in the Programmers Guide for more information。

参数

  • layer1Enc: A reference to an oaVector object whose x and y values indicate the enclosure。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setLayer1Enc(layer1Enc)

obj.setLayer2Enc(layer2Enc)

绑定状态: 已绑定

Python 调用: obj.setLayer2Enc(layer2Enc)

This function sets the width and height of the layer2 enclosure based on the specified layer2Enc oaVector object whose x and y values indicate the width and height, respectively。 This enclosure is relative to the bounding box of the via cut matrix, which may consist of a single cut。 The layer2 rectangle is generated by subtracting the layer2Enc vector from the lower left corner and adding it to the upper right corner of the cut bounding box; then the rectangle is shifted by applying the layer2 offset。 The default flag bit for the layer2 enclosure parameter is cleared。 When an oaViaParam is associated with an oaStdViaDef , the x and y values indicate that the cut must be enclosed by layer 1 by at least the value of x on both sides in one direction, and by at least the value of y on both sides in the opposite direction。 When an oaViaParam is associated with an oaStdVia , the x value literally indicates enclosure in the x direction, and the y value literally indicates enclosure in the y direction。 When applications use an oaStdViaDef to create an oaStdVia , they can use the enclosure values provided in the oaStdViaDef's oaViaParams, but should choose the direction of the enclosure that best maximizes the number of cuts that can fit in the oaStdVia being created。 The direction chosen must then be specified in the x,y vector associated with the oaStdVia's oaViaParam enclosure attribute。 Refer to Layer2 Enclosure in the Programmers Guide for more information。

参数

  • layer2Enc: A reference to an oaVector object whose x and y values indicate the enclosure。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setLayer2Enc(layer2Enc)

obj.setImplant1Enc(imp1Enc)

绑定状态: 已绑定

Python 调用: obj.setImplant1Enc(imp1Enc)

This function sets the width and height of the implant enclosure for the implant1 layer based on the specified imp1Enc oaVector object whose x and y values indicate the width and height, respectively。 This enclosure is relative to the bounding box of the layer1 rectangle。 The implant1 rectangle is generated by subtracting the imp1Enc vector from the lower left corner and adding it to the upper right corner of the layer1 bounding box。 The default flag bit for the implant1 enclosure parameter is cleared。 When an oaViaParam for an implant1 enclosure is associated with an oaStdViaDef , the x and y values indicate that layer1 must be enclosed by at least the value of x on both sides in one direction, and by at least the value of y on both sides in the opposite direction。 When an oaViaParam is associated with an oaStdVia , the x value literally indicates enclosure in the x direction, and the y value literally indicates enclosure in the y direction。 When applications use an oaStdViaDef to create an oaStdVia , they can use the enclosure values provided in the oaStdViaDef's oaViaParams, but should choose the direction of the enclosure that best maximizes the number of cuts that can fit in the oaStdVia being created。 The direction chosen must then be specified in the x,y vector associated with the oaStdVia's oaViaParam enclosure attribute。 Refer to Implant1 Enclosure in the Programmers Guide for more information。

参数

  • imp1Enc: A reference to an oaVector object whose x and y values indicate the enclosure。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setImplant1Enc(imp1Enc)

obj.setImplant2Enc(imp2Enc)

绑定状态: 已绑定

Python 调用: obj.setImplant2Enc(imp2Enc)

This function sets the width and height of the implant enclosure for the implant2 layer based on the specified imp2Enc oaVector object whose x and y values indicate the width and height, respectively。 This enclosure is relative to the bounding box of the layer2 rectangle。 The implant2 rectangle is generated by subtracting the imp2Enc vector from lower left corner and adding it to the upper right corner of the layer2 bounding box。 The default flag bit for the implant2 enclosure parameter is cleared。 When an oaViaParam for an implant2 enclosure is associated with an oaStdViaDef , the x and y values indicate that layer2 must be enclosed by at least the value of x on both sides in one direction, and by at least the value of y on both sides in the opposite direction。 When an oaViaParam is associated with an oaStdVia , the x value literally indicates enclosure in the x direction, and the y value literally indicates enclosure in the y direction。 When applications use an oaStdViaDef to create an oaStdVia , they can use the enclosure values provided in the oaStdViaDef's oaViaParams, but should choose the direction of the enclosure that best maximizes the number of cuts that can fit in the oaStdVia being created。 The direction chosen must then be specified in the x,y vector associated with the oaStdVia's oaViaParam enclosure attribute。 Refer to Implant2 Enclosure in the Programmers Guide for more information。

参数

  • imp2Enc: A reference to an oaVector object whose x and y values indicate the enclosure。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setImplant2Enc(imp2Enc)

obj.setLayer1Offset(layer1Offset)

绑定状态: 已绑定

Python 调用: obj.setLayer1Offset(layer1Offset)

This function sets the current x and y offsets for the layer1 enclosure rectangle。 The x and y values of the specified layer1Offset oaVector indicate the x and y offsets, respectively。 The layer1 rectangle that is generated by applying the layer1 enclosure is offset by adding the layer1Offset vector to the lower left and upper right corners。 The default flag bit for the layer1 offset parameter is cleared。

参数

  • layer1Offset: A reference to an oaVector object whose x and y values indicate the respective offsets。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setLayer1Offset(layer1Offset)

obj.setLayer2Offset(layer2Offset)

绑定状态: 已绑定

Python 调用: obj.setLayer2Offset(layer2Offset)

This function sets the current x and y offsets for the layer2 enclosure rectangle。 The x and y values of the specified layer2Offset oaVector indicate the x and y offsets, respectively。 The layer2 rectangle that is generated by applying the layer2 enclosure is offset by adding the layer2Offset vector to the lower left and upper right corners。 The default flag bit for the layer2 offset parameter is cleared。

参数

  • layer2Offset: A reference to an oaVector object whose x and y values indicate the respective offsets。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setLayer2Offset(layer2Offset)

obj.setCutSpacing(cutSpacing)

绑定状态: 已绑定

Python 调用: obj.setCutSpacing(cutSpacing)

This function sets the x and y spacing between the cuts in the via cut matrix for this object as per the specified x and y values in the oaVector cutSpacing parameter。 The spacing applies only for multiple cut vias or via definitions。 The default flag bit for the cutSpacing parameter is cleared。

参数

  • cutSpacing: The x and y spacing to be used between via cuts specified as an oaVector object。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setCutSpacing(cutSpacing)

obj.setOriginOffset(originOffset)

绑定状态: 已绑定

Python 调用: obj.setOriginOffset(originOffset)

This function sets the originOffset for this oaViaParam object based on the specified originOffset oaVector object whose x and y values indicate the x and y offsets that apply。 The bounding box of the via cut matrix, which may consist of a single cut rectangle, is centered at this origin。 The default flag bit for the originOffset parameter is cleared。

参数

  • originOffset: A reference to an oaVector object whose x and y values indicate the respective offsets。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setOriginOffset(originOffset)

obj.setCutWidth(width)

绑定状态: 已绑定

Python 调用: obj.setCutWidth(width)

This function sets the width to be used for each cut in the via cut matrix on the cut layer for this oaViaParam object to the specified width value。 The default flag bit for the cutWidth parameter is cleared。

参数

  • width: The width to be used for each via cut in the via cut matrix。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setCutWidth(width)

obj.setCutHeight(height)

绑定状态: 已绑定

Python 调用: obj.setCutHeight(height)

This function sets the height to be used for each via cut in the via cut matrix on the cutLayer for this oaViaParam object to the specified height value。 The default flag bit for the cutHeight parameter is cleared。

参数

  • height: The height to be used for each cut in the via cut matrix。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setCutHeight(height)

obj.setCutLayer(cutLayer)

绑定状态: 已绑定

Python 调用: obj.setCutLayer(cutLayer)

This function sets the layer that should be used as the cutLayer for this oaViaParam object to the specified cutLayerIn value。 The default flag bit for the cutLayer parameter is cleared。

参数

  • cutLayerIn: The layer number of the layer to be used as the via cutLayer。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setCutLayer(cutLayer)

obj.setCutColumns(cutColumns)

绑定状态: 已绑定

Python 调用: obj.setCutColumns(cutColumns)

This function sets the number of columns for the cut matrix on the cutLayer for this oaViaParam object to the specified cutColumnsIn value。 Note that this action is a change to the existing via cut matrix configuration and this action will turn on all the via cuts in the new cut matrix which is the default setting。 An oaViaParam needs to have at least one column and an exception is thrown if zero columns are specified。 The default flag bit for the cutColumns parameter is cleared。

参数

  • cutColumnsIn: The number of columns to be used for the via cut matrix。

异常

  • oacZeroColumnsSpecifiedForViaParam

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setCutColumns(cutColumns)

obj.setCutRows(cutRows)

绑定状态: 已绑定

Python 调用: obj.setCutRows(cutRows)

This function sets the number of rows for the cut matrix on the cutLayer for this oaViaParam object to the specified cutRowsIn value。 Note that this action is a change to the existing via cut matrix configuration and this action will turn on all the via cuts in the new cut matrix which is the default setting。 An oaViaParam needs to have at least one row and an exception is thrown if zero rows are specified。 The default flag bit for the cutRows parameter is cleared。

参数

  • cutRowsIn: The number of rows to be used for the via cut matrix。

异常

  • oacZeroRowsSpecifiedForViaParam

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setCutRows(cutRows)

obj.setDefaultCutPattern()

绑定状态: 已绑定

Python 调用: obj.setDefaultCutPattern()

This function removes any cut pattern customization that may exist for this oaViaParam object and makes the default cut pattern apply。 All via cuts are then assumed to exist。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setDefaultCutPattern()

obj.setCutPatternVal(cutRowNum, cutColNum, val)

绑定状态: 已绑定

Python 调用: obj.setCutPatternVal(cutRowNum, cutColNum, val)

This function specifies whether a particular via cut in the via cut matrix should exist or not。 Each cut is identified by a cutRowNum and cutColNum indicating the row and column of the cut depending upon the specified val value。 Note that cutRowNum and cutColNum values start at 0 and should not exceed the number of cutRows and columns set for the oaViaParam object。 An exception is thrown if this requirement is not met。 Also note that this function should be used only after the rows and columns for the via cut matrix have been specified 。

参数

  • cutRowNum: The row number in the cut matrix, 0 being the bottom row。
  • cutColNum: The column number in the cut matrix, 0 being the left column。
  • val: A boolean true indicates the existence of a cut and a boolean false indicates the absence of a cut。

异常

  • oacInvalidViaParamColumnNumber
  • oacInvalidViaParamRowNumber

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setCutPatternVal(cutRowNum, cutColNum, val)

obj.hasDefault(paramType)

绑定状态: 已绑定

Python 调用: obj.hasDefault(paramType)

This function returns true if the default flag bit for the specified parameter field is set; otherwise it returns false。

参数

  • paramType: The parameter type to query to see if it uses the default value。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.hasDefault(paramType)

obj.hasAnyDefaults()

绑定状态: 已绑定

Python 调用: obj.hasAnyDefaults()

This function returns true if the default flag bit for one or more parameters in the oaViaParam is set。 If all parameter default flag bits have been cleared, false is returned。 Note that the setting of the cutPattern is not taken into account in determining this function's value。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.hasAnyDefaults()

obj.setDefault(paramType)

绑定状态: 已绑定

Python 调用: obj.setDefault(paramType)

This function sets the specified parameter field to the default value。 It also sets the default flag bit for this parameter field。 oaViaParam::hasDefault() returns true if the specified parameter field is set。 The default parameter value for cutRows and cutColumns is 1; the default value for the other parameters is 0。

参数

  • paramType: The parameter type on which to set the default value。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setDefault(paramType)

obj.setAllNonDefault()

绑定状态: 已绑定

Python 调用: obj.setAllNonDefault()

This function sets all the flags to indicate that the parameter values are to be considered as non default values。 This is useful when working with via variants。 Refer to Representing Vias in OpenAccess in the Programmers Guide for more information。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.setAllNonDefault()

obj.isEqual(params)

绑定状态: 已绑定

Python 调用: obj.isEqual(params)

This function compares the current object with another of the oaViaParam class returning true if the objects are equal and returning false if the objects are not equal。 All parameters of the objects are compared except flags。 Note: The oaViaParameter::operator== function does compare the flags and returns false if the values in one of the viaParam objects were set explicitly and the other values were left at the default even if the actual values are the same。 The isEqual function compares only the actual values and ignores the explicitness of the values。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.isEqual(params)

obj.operator=(params)

绑定状态: 已绑定

Python 调用: obj.operator=(params)

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.operator=(params)

obj.operator==(param)

绑定状态: 已绑定

Python 调用: obj.operator==(param)

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.operator==(param)

obj.operator!=(param)

绑定状态: 已绑定

Python 调用: obj.operator!=(param)

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaParam
obj.operator!=(param)