|
AnyCAD Rapid API 2026
Help you to create a better world!
|
显示应用程序入口 更多...
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
| void AnyCAD.Foundation.BaseApplication.AddEventListener | ( | AppEventListener | pListener | ) |
增加应用级别的事件监听器
| pListener | 监听器 |
| Viewer AnyCAD.Foundation.BaseApplication.CreateView | ( | int | hwndHost, |
| uint | width, | ||
| uint | height ) |
基于已有的窗口控件上创建三维显示视图
| hwndHost | the host window handle. |
| width | the width |
| height | the height |
| Viewer AnyCAD.Foundation.BaseApplication.CreateWindow3D | ( | string | title, |
| uint | width, | ||
| uint | height, | ||
| bool | visible ) |
创建一个独立的三维窗口.
| title | the title |
| width | the width |
| height | the height |
| visible | if visible. |
|
virtual |
释放资源
| bool AnyCAD.Foundation.BaseApplication.ExecuteCommand | ( | string | name | ) |
执行命令
| name | 命令名称 |
| bool AnyCAD.Foundation.BaseApplication.ExecuteCommand | ( | string | name, |
| string | parameters ) |
执行命令
| name | 命令名称 |
| parameters | 与ParameterDict兼容的JSON对象字符串 |
| bool AnyCAD.Foundation.BaseApplication.ExecuteCommand | ( | string | name, |
| string | parameters, | ||
| bool | clearEditor ) |
执行命令
| name | 命令名称 |
| parameters | 与ParameterDict兼容的JSON对象字符串 |
| clearEditor | 新建Editor的时候是否清除原Editor |
| bool AnyCAD.Foundation.BaseApplication.ExecuteEditorAction | ( | string | name | ) |
执行Editor的子命令
| name | 命令名称 |
| bool AnyCAD.Foundation.BaseApplication.ExecuteEditorAction | ( | string | name, |
| string | params_ ) |
执行Editor的子命令
| name | 命令名称 |
| Vector2 AnyCAD.Foundation.BaseApplication.GetDpiScale | ( | ) |
获取显示器DPI缩放系数。
|
virtual |
初始化。内部调用
| basePath | 程序EXE全路径 |
被 AnyCAD.Platform.Application , 以及 AnyCAD.Foundation.GeoApplication 重载.
| bool AnyCAD.Foundation.BaseApplication.Input | ( | string | parameters | ) |
给当前的Editor输入参数
| parameters | 参数 |
|
virtual |
| string AnyCAD.Foundation.BaseApplication.QueryCommand | ( | string | name, |
| ParameterDict | parameters ) |
查询
| name | 命令 |
| parameters | 参数 |
| void AnyCAD.Foundation.BaseApplication.RemoveEventListener | ( | AppEventListener | pListener | ) |
移除监听器
| pListener | 监听器 |
| void AnyCAD.Foundation.BaseApplication.SetActiveViewer | ( | IRenderView | viewer | ) |
设置当前视图
| viewer |
| void AnyCAD.Foundation.BaseApplication.SetActiveViewer | ( | Viewer | viewer | ) |
设置当前活动的视图
| viewer | 视图 |