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

命令基类 更多...

类 AnyCAD.Foundation.Command 继承关系图:
AnyCAD.Designing.PrimitiveCommand AnyCAD.Foundation.EditorCommand

Public 成员函数

 Command (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
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 ()
 
virtual void QueryParamsSchema (CommandContext ctx)
 查询命令的输入参数Schema,保存在Output中
 
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)
 重新定向到其他命令来执行
 

详细描述

命令基类

Group: Interaction

成员函数说明

◆ BeforeRunning()

virtual bool AnyCAD.Foundation.Command.BeforeRunning ( CommandContext ctx)
virtual

在执行命令之前进行检查是否可以执行。

参数
ctx上下文
返回
true则可以执行,false则不可执行。

◆ Execute()

bool AnyCAD.Foundation.Command.Execute ( CommandContext ctx,
bool notify )

执行

参数
ctx上下文信息
notify是否通知命令

◆ GetUIName()

virtual string AnyCAD.Foundation.Command.GetUIName ( )
virtual

◆ IsChecked()

virtual bool AnyCAD.Foundation.Command.IsChecked ( CommandContext ctx)
virtual

是否仍在执行。

参数
ctx上下文
返回
true则还是执行状态

◆ IsVisible()

virtual bool AnyCAD.Foundation.Command.IsVisible ( CommandContext ctx)
virtual

是否可以执行。

参数
ctx上下文
返回
true则可以执行

◆ Query()

virtual string AnyCAD.Foundation.Command.Query ( CommandContext ctx)
virtual

查询命令

参数
ctx上下文
返回
查询结果。采用JSON格式

◆ Redirect()

static bool AnyCAD.Foundation.Command.Redirect ( string name,
CommandContext ctx )
static

重新定向到其他命令来执行

参数
name
ctx
返回
是否重构

◆ ShowToolTip()

void AnyCAD.Foundation.Command.ShowToolTip ( string message)

显示提示信息

参数
message内容