oaOccPath
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaOccPath 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaOccPath 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOccPath class implements an unique occurrence of an oaPath object in a design hierarchy。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getWidth() |
| ✅ | obj.getNumPoints() |
| ✅ | obj.getPoints(points) |
| ✅ | obj.getStyle() |
| ✅ | obj.getBeginExt() |
| ✅ | obj.getEndExt() |
| ✅ | obj.getBoundary(boundary) |
| ✅ | obj.isOrthogonal() |
方法说明
obj.getWidth()
绑定状态: 已绑定
Python 调用: obj.getWidth()
This function returns the width of this occPath。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPath
obj.getWidth()
obj.getNumPoints()
绑定状态: 已绑定
Python 调用: obj.getNumPoints()
This function returns the number of points in this occPath。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPath
obj.getNumPoints()
obj.getPoints(points)
绑定状态: 已绑定
Python 调用: obj.getPoints(points)
This function fills out 'points' with the points of this occPath。
参数
points: The point array to be filled with the points of this occPath。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPath
obj.getPoints(points)
obj.getStyle()
绑定状态: 已绑定
Python 调用: obj.getStyle()
This function returns the style of this occPath。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPath
obj.getStyle()
obj.getBeginExt()
绑定状态: 已绑定
Python 调用: obj.getBeginExt()
This function returns the beginning extension value for this occPath。 By definition, the extension is zero if the style is anything other than variable。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPath
obj.getBeginExt()
obj.getEndExt()
绑定状态: 已绑定
Python 调用: obj.getEndExt()
This function returns the ending extension value for this occPath。 By definition, the extension is zero if the style is anything other than variable。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPath
obj.getEndExt()
obj.getBoundary(boundary)
绑定状态: 已绑定
Python 调用: obj.getBoundary(boundary)
This function fills out 'boundary' with the boundary polygon of this occPath。
参数
boundary: The point array to be filled with the boundary of this occPath。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPath
obj.getBoundary(boundary)
obj.isOrthogonal()
绑定状态: 已绑定
Python 调用: obj.isOrthogonal()
This function returns a boolean indicating whether or not this occPath's pointArray is orthogonal。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccPath
obj.isOrthogonal()