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

Public 成员函数

 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 ()
 
boolean GetClearPreviousEditor ()
 
void SetClearPreviousEditor (boolean val)
 
String GetErrorMessage ()
 
void SetErrorMessage (String val)
 
ObjectId GetObjectId ()
 
void SetObjectId (ObjectId id)
 
EnumEditorTrigger GetTrigger ()
 
SelectionManager GetSelectionManager ()
 

详细描述

<> 命令执行上下文

构造及析构函数说明

◆ CommandContext()

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

构造模型上下文

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

成员函数说明

◆ GetObjectId()

ObjectId CommandContext.GetObjectId ( )

获取当前输入的操作对象Id

◆ GetSelectionManager()

SelectionManager CommandContext.GetSelectionManager ( )

获取当前选择集管理器

返回
对象

◆ SetObjectId()

void CommandContext.SetObjectId ( ObjectId id)

设置当前输入操作对象ID

参数
id