|
AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
| String | GetName () |
| void | SetName (String val) |
| boolean | GetHasEditor () |
| void | SetHasEditor (boolean val) |
| boolean | GetNeedViewer () |
| void | SetNeedViewer (boolean val) |
| String | GetDescription () |
| void | SetDescription (String val) |
| boolean | Execute (CommandContext ctx, boolean notify) |
| boolean | Run (CommandContext ctx) |
| String | Query (CommandContext ctx) |
| boolean | IsVisible (CommandContext ctx) |
| boolean | IsChecked (CommandContext ctx) |
| boolean | BeforeRunning (CommandContext ctx) |
<> 命令基类
| boolean Command.BeforeRunning | ( | CommandContext | ctx | ) |
在执行命令之前进行检查是否可以执行。
| ctx | 上下文 |
| boolean Command.Execute | ( | CommandContext | ctx, |
| boolean | notify ) |
执行
| ctx | 上下文信息 |
| notify | 是否通知命令 |
| boolean Command.IsChecked | ( | CommandContext | ctx | ) |
是否仍在执行。
| ctx | 上下文 |
| boolean Command.IsVisible | ( | CommandContext | ctx | ) |
是否可以执行。
| ctx | 上下文 |
| String Command.Query | ( | CommandContext | ctx | ) |
查询命令
| ctx | 上下文 |
| boolean Command.Run | ( | CommandContext | ctx | ) |
子类重载此方法实现命令的行为
| ctx | 上下文信息 |