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

显示应用程序入口 更多...

类 AnyCAD.Foundation.BaseApplication 继承关系图:
AnyCAD.Foundation.GeoApplication AnyCAD.Platform.Application

Public 成员函数

 BaseApplication (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
Viewer GetActiveViewer ()
 
bool GetStandalone ()
 
void SetStandalone (bool val)
 
string GetAccessToken ()
 
void SetAccessToken (string val)
 
virtual bool Initialize (Path basePath)
 初始化。内部调用
 
virtual void Destroy ()
 释放资源
 
Viewer CreateView (int hwndHost, uint width, uint height)
 基于已有的窗口控件上创建三维显示视图
 
Viewer CreateWindow3D (string title, uint width, uint height, bool visible)
 创建一个独立的三维窗口.
 
void SetActiveViewer (Viewer viewer)
 设置当前活动的视图
 
virtual void InstallListener (Viewer viewer)
 给Viewer安装默认的消息监听器
 
bool ExecuteCommand (string name, string parameters, bool clearEditor)
 执行命令
 
bool ExecuteCommand (string name, string parameters)
 执行命令
 
bool ExecuteCommand (string name)
 执行命令
 
bool ExecuteCommand (string name, ParameterDict parameters, bool clearEditor)
 
bool ExecuteCommand (string name, ParameterDict parameters)
 
string QueryCommand (string name, ParameterDict parameters)
 查询
 
string QueryCommand (string name, string parameters)
 
string QueryCommand (string name)
 
bool Input (string parameters)
 给当前的Editor输入参数
 
bool Input (ParameterDict parameters)
 
bool ExecuteEditorAction (string name, string params_)
 执行Editor的子命令
 
bool ExecuteEditorAction (string name)
 执行Editor的子命令
 
bool ExecuteEditorAction (string name, ParameterDict parameters)
 
void AddEventListener (AppEventListener pListener)
 增加应用级别的事件监听器
 
void RemoveEventListener (AppEventListener pListener)
 移除监听器
 
Vector2 GetDpiScale ()
 获取显示器DPI缩放系数。
 
void SetActiveViewer (IRenderView viewer)
 设置当前视图
 

静态 Public 成员函数

static bool InternalRegisterSdk (string a, string b, string d, string e, string f)
 
static bool InternalLoadResources (Path baseDirectory, string appName)
 

详细描述

显示应用程序入口

应用全局对象

Group: Rendering

成员函数说明

◆ AddEventListener()

void AnyCAD.Foundation.BaseApplication.AddEventListener ( AppEventListener pListener)

增加应用级别的事件监听器

参数
pListener监听器

◆ CreateView()

Viewer AnyCAD.Foundation.BaseApplication.CreateView ( int hwndHost,
uint width,
uint height )

基于已有的窗口控件上创建三维显示视图

参数
hwndHostthe host window handle.
widththe width
heightthe height
返回
the viewer.

◆ CreateWindow3D()

Viewer AnyCAD.Foundation.BaseApplication.CreateWindow3D ( string title,
uint width,
uint height,
bool visible )

创建一个独立的三维窗口.

参数
titlethe title
widththe width
heightthe height
visibleif visible.
返回

◆ Destroy()

virtual void AnyCAD.Foundation.BaseApplication.Destroy ( )
virtual

释放资源

AnyCAD.Platform.Application 重载.

◆ ExecuteCommand() [1/3]

bool AnyCAD.Foundation.BaseApplication.ExecuteCommand ( string name)

执行命令

参数
name命令名称
返回
是否执行成功

◆ ExecuteCommand() [2/3]

bool AnyCAD.Foundation.BaseApplication.ExecuteCommand ( string name,
string parameters )

执行命令

参数
name命令名称
parameters与ParameterDict兼容的JSON对象字符串
返回
是否执行成功

◆ ExecuteCommand() [3/3]

bool AnyCAD.Foundation.BaseApplication.ExecuteCommand ( string name,
string parameters,
bool clearEditor )

执行命令

参数
name命令名称
parameters与ParameterDict兼容的JSON对象字符串
clearEditor新建Editor的时候是否清除原Editor
返回
是否执行成功

◆ ExecuteEditorAction() [1/2]

bool AnyCAD.Foundation.BaseApplication.ExecuteEditorAction ( string name)

执行Editor的子命令

参数
name命令名称
返回
是否成功

◆ ExecuteEditorAction() [2/2]

bool AnyCAD.Foundation.BaseApplication.ExecuteEditorAction ( string name,
string params_ )

执行Editor的子命令

参数
name命令名称
返回
是否成功

◆ GetDpiScale()

Vector2 AnyCAD.Foundation.BaseApplication.GetDpiScale ( )

获取显示器DPI缩放系数。

返回
缩放系数

◆ Initialize()

virtual bool AnyCAD.Foundation.BaseApplication.Initialize ( Path basePath)
virtual

初始化。内部调用

参数
basePath程序EXE全路径
返回
true成功

AnyCAD.Platform.Application , 以及 AnyCAD.Foundation.GeoApplication 重载.

◆ Input()

bool AnyCAD.Foundation.BaseApplication.Input ( string parameters)

给当前的Editor输入参数

参数
parameters参数
返回
是否成功

◆ InstallListener()

virtual void AnyCAD.Foundation.BaseApplication.InstallListener ( Viewer viewer)
virtual

给Viewer安装默认的消息监听器

参数
viewer视图

AnyCAD.Platform.Application 重载.

◆ QueryCommand()

string AnyCAD.Foundation.BaseApplication.QueryCommand ( string name,
ParameterDict parameters )

查询

参数
name命令
parameters参数
返回
查询结果

◆ RemoveEventListener()

void AnyCAD.Foundation.BaseApplication.RemoveEventListener ( AppEventListener pListener)

移除监听器

参数
pListener监听器

◆ SetActiveViewer() [1/2]

void AnyCAD.Foundation.BaseApplication.SetActiveViewer ( IRenderView viewer)

设置当前视图

参数
viewer

◆ SetActiveViewer() [2/2]

void AnyCAD.Foundation.BaseApplication.SetActiveViewer ( Viewer viewer)

设置当前活动的视图

参数
viewer视图