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
◆
newIDocument()
virtual
App::IDocument
* newIDocument
(
const char *
Name
=
nullptr
,
const char *
UserName
=
nullptr
,
bool
createView
=
true
,
bool
tempDoc
=
false
,
App::DocType
type
=
App::DocType::Component
,
const char *
className
=
nullptr
)
pure virtual
创建一个新的文档对象
创建一个新的文档对象
参数
[Name]
文档名称,默认为nullptr。
[UserName]
用户指定的文档名称,默认为nullptr。
[createView]
是否创建视图,默认为true。
[tempDoc]
是否是临时文档,默认为false。
[type]
文档类型,默认为App::DocType::Component。
[className]
文档类名,默认为nullptr。
返回
返回一个指向App::IDocument接口的指针。