AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::DocViewManager类 参考

文档视图管理器 更多...

#include <APIDocViewManager.h>

Public 成员函数

View3d CreateView (long hWnd, const Document &document)
 
StringList ListAllCommands ()
 
Document CreateDocument (const String &docType)
 
Document OpenDocument (const Path &fileName)
 
bool SaveDocument (const Document &doc, const Path &fileName)
 
void SetCurrentDocumentType (const String &docType)
 
String GetCurrentDocumentType () const
 
ElementIdSet CollectUnusedTypeIds (const Document &doc)
 
void SelectElements (const Document &doc, const ElementIdSet &ids)
 

详细描述

文档视图管理器

TODO:

成员函数说明

ElementIdSet AnyCAD::API::DocViewManager::CollectUnusedTypeIds ( const Document doc)

Collect all the unused type ids.

参数
docthe Document.
返回
the type ids.
Document AnyCAD::API::DocViewManager::CreateDocument ( const String docType)

Create a new document

参数
docTypethe document type
返回
the document
View3d AnyCAD::API::DocViewManager::CreateView ( long  hWnd,
const Document document 
)

Create 3d view

参数
hWndthe window handle
documentthe document
返回
the view
String AnyCAD::API::DocViewManager::GetCurrentDocumentType ( ) const

Get current document type.

返回
the document type.
StringList AnyCAD::API::DocViewManager::ListAllCommands ( )

List all the commands

返回
the command list
Document AnyCAD::API::DocViewManager::OpenDocument ( const Path fileName)

Open an existing document.

参数
fileNamethe full file path.
返回
the document.
bool AnyCAD::API::DocViewManager::SaveDocument ( const Document doc,
const Path fileName 
)

Save the document.

参数
docThe document.
fileNameFilename of the file.
返回
true if failed to save.
void AnyCAD::API::DocViewManager::SelectElements ( const Document doc,
const ElementIdSet ids 
)

Select the elements

参数
docthe Document
idsthe ids to be selected.
void AnyCAD::API::DocViewManager::SetCurrentDocumentType ( const String docType)

Set current document policy.

参数
docTypethe document type Id.

该类的文档由以下文件生成: