首页 / dm / oaView

oaView

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

概览

oaViewoapy 中可用,可通过 _dm 模块访问。

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

详细说明

The oaView class implements an OpenAccess library view object。 The oaView class can be observed by deriving from oaObserver 。 Note: The oaView function descriptions indicate if library access is required for the called function。 If the access type must be write access, this requirement also is noted。 For more information on library access, see Library Access in the detailed description for oaLib and OpenAccess 2.2 Libraries and Design Management in the Programmers Guide。

方法总览

状态 Python 调用
_dm.oaView.destroy()
obj.getName(name)
obj.getName(ns, out)
obj.getViewType()
obj.getCellViews()
_dm.oaView.find(lib, name, viewType)
_dm.oaView.get(lib, name, viewType)

方法说明

_dm.oaView.destroy()

绑定状态: 已绑定

Python 调用: _dm.oaView.destroy()

This function destroys this oaView。 This function requires write access to the library associated with this object (through a call to oaLib::getAccess )。 An oacLibAccessDenied exception is thrown if write access to the library does not exist。 For more information on library access, see Library Access in the detailed description for oaLib and OpenAccess 2.2 Libraries and Design Management in the Programmers Guide。

异常

  • oacLibAccessDenied

Python 示例

from oapy._oa import _dm

_dm.oaView.destroy()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this view in the specified namespace。

Python 示例

from oapy._oa import _dm

# assume obj is a oaView
obj.getName(name)

obj.getName(ns, out)

绑定状态: 已绑定

Python 调用: obj.getName(ns, out)

This function returns the name of this view。

Python 示例

from oapy._oa import _dm

# assume obj is a oaView
obj.getName(ns, out)

obj.getViewType()

绑定状态: 已绑定

Python 调用: obj.getViewType()

This function returns the viewType of this view。

Python 示例

from oapy._oa import _dm

# assume obj is a oaView
obj.getViewType()

obj.getCellViews()

绑定状态: 已绑定

Python 调用: obj.getCellViews()

This function returns a collection of the cellViews which are defined using this view。 This function requires access to the library associated with this object (through a call to oaLib::getAccess )。 An oacLibAccessDenied exception is thrown if access to the library does not exist。 For more information on library access, see Library Access in the detailed description for oaLib and OpenAccess 2.2 Libraries and Design Management in the Programmers Guide。

异常

  • oacLibAccessDenied

Python 示例

from oapy._oa import _dm

# assume obj is a oaView
obj.getCellViews()

_dm.oaView.find(lib, name, viewType)

绑定状态: 已绑定

Python 调用: _dm.oaView.find(lib, name, viewType)

This function finds and returns the view with the specified name and viewType if it exists。 If not found, NULL is returned。 If the DM system plug-in in use does not support explicit view creation (such as, oaDMFileSys), this function will always return a view with the specified name and viewType。 This function requires access to the library associated with this object (through a call to oaLib::getAccess )。 An oacLibAccessDenied exception is thrown if access to the library does not exist。 For more information on library access, see Library Access in the detailed description for oaLib and OpenAccess 2.2 Libraries and Design Management in the Programmers Guide。

参数

  • lib:
  • name:
  • viewType:

异常

  • oacLibAccessDenied

Python 示例

from oapy._oa import _dm

_dm.oaView.find(lib, name, viewType)

_dm.oaView.get(lib, name, viewType)

绑定状态: 已绑定

Python 调用: _dm.oaView.get(lib, name, viewType)

This function finds and returns the view with the specified name if it exists。 If not found, it is created, and the new view is returned。 This function requires write access to the library associated with this object (through a call to oaLib::getAccess )。 An oacLibAccessDenied exception is thrown if write access to the library does not exist。 For more information on library access, see Library Access in the detailed description for oaLib and OpenAccess 2.2 Libraries and Design Management in the Programmers Guide。

异常

  • oacLibAccessDenied

Python 示例

from oapy._oa import _dm

_dm.oaView.get(lib, name, viewType)