|
AnyCAD Rapid API 2026
Help you to create a better world!
|
命令执行上下文 更多...
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
| AnyCAD.Foundation.CommandContext.CommandContext | ( | Viewer | pViewer, |
| Document | pDoc, | ||
| ParameterDict | parameters ) |
构造模型上下文
| pViewer | 视图 |
| pDoc | 文档 |
| parameters | 输入参数 |
| SelectionManager AnyCAD.Foundation.CommandContext.GetSelectionManager | ( | ) |
获取当前选择集管理器
| bool AnyCAD.Foundation.CommandContext.IsBatchMode | ( | ) |
批处理模式,带Editor的命令不进入Editor,直接执行
| void AnyCAD.Foundation.CommandContext.SetObjectId | ( | ObjectId | id | ) |
设置当前输入操作对象ID
| id |