首页 / dm / oaLibDefListRef

oaLibDefListRef

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

概览

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

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

详细说明

oaLibDefListRef is a derived class of oaLibDefListMem 。 It represents a reference to a another library definition list in the owning oaLibDefList 。

方法总览

状态 Python 调用
obj.getRefListPath(path)
_dm.oaLibDefListRef.create(libList, refListPath, followingMem=NULL)
_dm.oaLibDefListRef.find(defList, refListPath)

方法说明

obj.getRefListPath(path)

绑定状态: 已绑定

Python 调用: obj.getRefListPath(path)

This function fills in the path to the referred list of this libDefListRef object。

参数

  • path: output parameter - the path to the referred libDefList。

Python 示例

from oapy._oa import _dm

# assume obj is a oaLibDefListRef
obj.getRefListPath(path)

_dm.oaLibDefListRef.create(libList, refListPath, followingMem=NULL)

绑定状态: 已绑定

Python 调用: _dm.oaLibDefListRef.create(libList, refListPath, followingMem=NULL)

This function creates the libDefListRef object in the owning libList with the the given parameters。 Exceptions will be thrown if a reference object already exists with the same path as refListPath。 This object will be created in the owning libList before the specified followingMem, which must be in the same owning list。 If followinMem is not specified (or if NULL is specified), this object will be positioned at the end of the owning libList。

参数

  • libList: input parameter - The oaLibDefList in which this oaLibDefListRef will be created。
  • refListPath: input parameter - The path to the file of the referred libDefList。 A relative path can be specified, which must be relative to the path of the file of the owning libList。
  • followingMem: optional input parameter - The member in the owning libList list that this libDef will be positioned in front of。 If this parameter is not specified (or if NULL is specified), this oaLibDefListRef will be positioned at the end of the owning libList。

异常

  • oacLibDefListRefExists
  • oacInvalidLibDefListMemCreate

Python 示例

from oapy._oa import _dm

_dm.oaLibDefListRef.create(libList, refListPath, followingMem=NULL)

_dm.oaLibDefListRef.find(defList, refListPath)

绑定状态: 已绑定

Python 调用: _dm.oaLibDefListRef.find(defList, refListPath)

This function attempts to find and return the libDefListRef object in the owning defList that refers to a libDefList at the specified refListPath。

参数

  • defList: input parameter - The owning oaLibDefList to search。
  • refListPath: input parameter- The path to the file of the referred libDefList。 A Relative path may be specified, which must be relative to the path of the file of the owning defList。

Python 示例

from oapy._oa import _dm

_dm.oaLibDefListRef.find(defList, refListPath)