|
AnyCAD Rapid API 2026
Help you to create a better world!
|
命令基类 更多...
Public 成员函数 | |
| Command (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| Command () | |
| 默认构造函数 | |
| string | GetName () |
| void | SetName (string val) |
| bool | GetHasEditor () |
| void | SetHasEditor (bool val) |
| bool | GetNeedViewer () |
| void | SetNeedViewer (bool val) |
| string | GetDescription () |
| void | SetDescription (string val) |
| string | GetURI () |
| void | SetURI (string val) |
| EnumCommandBehavior | GetCommandType () |
| virtual string | GetUIName () |
| 获取UI显示名称 | |
| virtual void | QueryParamsSchema (CommandContext ctx) |
| 查询命令的输入参数Schema | |
| bool | Execute (CommandContext ctx, bool notify) |
| 执行命令 | |
| virtual string | Query (CommandContext ctx) |
| 查询命令 | |
| virtual bool | IsVisible (CommandContext ctx) |
| 检查命令是否可见 | |
| virtual bool | IsChecked (CommandContext ctx) |
| 检查命令是否处于选中状态 | |
| virtual bool | BeforeRunning (CommandContext ctx) |
| 执行前检查 | |
| void | ShowToolTip (string message) |
| 显示提示信息 | |
静态 Public 成员函数 | |
| static bool | Redirect (string name, CommandContext ctx) |
| 重定向到其他命令 | |
命令基类
所有命令的抽象基类,定义命令的生命周期和行为。 支持交互式执行和批处理模式,可关联编辑器实现复杂交互。
|
virtual |
执行前检查
| ctx | 上下文 |
在执行命令之前进行前置条件验证
| bool AnyCAD.Foundation.Command.Execute | ( | CommandContext | ctx, |
| bool | notify ) |
执行命令
| ctx | 上下文信息 |
| notify | 是否通知监听器 |
|
virtual |
|
virtual |
检查命令是否处于选中状态
| ctx | 上下文 |
|
virtual |
检查命令是否可见
| ctx | 上下文 |
|
virtual |
查询命令
| ctx | 上下文 |
|
virtual |
查询命令的输入参数Schema
| ctx | 命令上下文 |
将参数Schema保存在Output中,用于自动生成UI
|
static |
重定向到其他命令
| name | 目标命令名称 |
| ctx | 命令上下文 |
| void AnyCAD.Foundation.Command.ShowToolTip | ( | string | message | ) |
显示提示信息
| message | 提示内容 |