AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Foundation.CommandContext类 参考

命令执行上下文 更多...

类 AnyCAD.Foundation.CommandContext 继承关系图:

Public 成员函数

 CommandContext (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
 CommandContext (Viewer pViewer, Document pDoc, ParameterDict parameters)
 构造模型上下文
 
Viewer GetViewer ()
 
void SetViewer (Viewer val)
 
Document GetDocument ()
 
void SetDocument (Document val)
 
ParameterDict GetParameters ()
 
void SetParameters (ParameterDict val)
 
ParameterDict GetOutput ()
 
bool GetClearPreviousEditor ()
 
void SetClearPreviousEditor (bool val)
 
string GetErrorMessage ()
 
void SetErrorMessage (string val)
 
ObjectId GetObjectId ()
 获取当前输入的操作对象Id
 
void SetObjectId (ObjectId id)
 设置当前输入操作对象ID
 
EnumEditorTrigger GetTrigger ()
 
SelectionManager GetSelectionManager ()
 获取当前选择集管理器
 
bool IsBatchMode ()
 批处理模式,带Editor的命令不进入Editor,直接执行
 

详细描述

命令执行上下文

Group: Interaction

构造及析构函数说明

◆ CommandContext()

AnyCAD.Foundation.CommandContext.CommandContext ( Viewer pViewer,
Document pDoc,
ParameterDict parameters )

构造模型上下文

参数
pViewer视图
pDoc文档
parameters输入参数

成员函数说明

◆ GetSelectionManager()

SelectionManager AnyCAD.Foundation.CommandContext.GetSelectionManager ( )

获取当前选择集管理器

返回
对象

◆ IsBatchMode()

bool AnyCAD.Foundation.CommandContext.IsBatchMode ( )

批处理模式,带Editor的命令不进入Editor,直接执行

返回
true为批处理模式

◆ SetObjectId()

void AnyCAD.Foundation.CommandContext.SetObjectId ( ObjectId id)

设置当前输入操作对象ID

参数
id