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

命令上下文 更多...

#include <APICommandContext.h>

Public 成员函数

View GetView () const
 
Document GetDocument () const
 
bool WaitForEventLoop (long loopId) const
 
void OutputMessage (const String &msg) const
 

详细描述

命令上下文

记录命令的上下文信息

成员函数说明

Document AnyCAD::API::CommandContext::GetDocument ( ) const

获取文档。

返回
Document.
View AnyCAD::API::CommandContext::GetView ( ) const

获取视图。

返回
View.
void AnyCAD::API::CommandContext::OutputMessage ( const String msg) const

输出信息。

参数
msg输出信息的内容。
bool AnyCAD::API::CommandContext::WaitForEventLoop ( long  loopId) const

等待EventLoop。

参数
loopId要等待的EventLoop的ID
返回
true 如果成功, 返回false 如果失败。

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