BIMHome
v1.0.0
BIMHome接口文档说明
首页
相关页面
Topics
包
类
文件
App
IApplication
addTemplateDocument
closeAllDocuments
closeDocument
deleteDocumentById
deleteTemplateDocumentById
get
getActiveDocument
getAllIDocument
getDocument
getDocumentById
getExecutableName
getHelpDir
getHomePath
getIDocMap
getIDocumentName
getLibraryDir
getResourceDir
getTempFileName
getTempPath
getUniqueObjectId
getUserAppDataDir
getUserCachePath
getUserConfigPath
getUserMacroDir
isClosingAll
isRestoring
newIDocument
openDocument
setActiveDocument
setActiveIDocument
~IApplication
◆
openDocument()
virtual
App::IDocument
* openDocument
(
const char *
FileName
,
bool
createView
,
bool
useLink
,
const char *
className
,
void *
pAppDelegate
=
nullptr
,
void *
pGuiDelegate
=
nullptr
)
pure virtual
打开一个文档
打开一个文档
参数
[in]
FileName
文档路径.
[in]
createView
是否创建view.
[in]
useLink
如有该文档已经存在,是否使用链接的方式打开.
[className]
文档类名,默认为nullptr。
[pAppDelegate]
app代理,默认为nullptr。
[pGuiDelegate]
gui代理,默认为nullptr。
返回
返回新创建的文档.