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

基本体命令对象 更多...

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

Public 成员函数

 PrimitiveCommand (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 PrimitiveCommand (string name, string uiName)
 构造
 
virtual new bool Run (CommandContext ctx)
 执行
 
override string GetUIName ()
 返回用户可见的名称
 
- Public 成员函数 继承自 AnyCAD.Foundation.Command
 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 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 成员函数 继承自 AnyCAD.Foundation.Command
static bool Redirect (string name, CommandContext ctx)
 重定向到其他命令
 

详细描述

基本体命令对象

Group: DataManage

构造及析构函数说明

◆ PrimitiveCommand()

AnyCAD.Designing.PrimitiveCommand.PrimitiveCommand ( string name,
string uiName )

构造

参数
nameId
uiNameTitle

成员函数说明

◆ GetUIName()

override string AnyCAD.Designing.PrimitiveCommand.GetUIName ( )
virtual

返回用户可见的名称

返回

重载 AnyCAD.Foundation.Command .

◆ Run()

virtual new bool AnyCAD.Designing.PrimitiveCommand.Run ( CommandContext ctx)
virtual

执行

参数
ctx上下文
返回
是否成功

重载 AnyCAD.Foundation.Command .