oaSessionObject
模块: oapy._oa._base
导入: from oapy._oa import _base
概览
oaSessionObject 在 oapy 中可用,可通过 _base 模块访问。
本页汇总 oaSessionObject 当前在 oapy 中可用的 Python 接口。
详细说明
The oaSessionObject class is an abstract class that is the base for all OpenAccess session objects。 The oaSession database is a non-persistent database which serves as the database parent to all session objects。 Session objects are transient objects which are valid across the entire OA session。 Session objects may have a persistent representation which is tied to a persistent database such as a oaDesign , oaTech or oaLib database。 In some cases, the session objects represent a union or superset of information compiled from databases which are opened in the OA session。 It is not legal to create properties or appDefs on session objects, nor is it legal to add these objects to groups。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getSession() |
方法说明
obj.getSession()
绑定状态: 已绑定
Python 调用: obj.getSession()
This function returns the oaSession database associated with this oaSessionObject。
Python 示例
from oapy._oa import _base
# assume obj is a oaSessionObject
obj.getSession()