|
AnyCAD Rapid API 2026
Help you to create a better world!
|
几何应用程序管理器 更多...
Public 成员函数 | |
| GeoApplication (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| override bool | Initialize (Path baseExe) |
| 初始化几何应用程序 | |
Public 成员函数 继承自 AnyCAD.Foundation.BaseApplication | |
| BaseApplication (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| BaseApplication () | |
| 构造函数 | |
| Viewer | GetActiveViewer () |
| bool | GetStandalone () |
| void | SetStandalone (bool val) |
| string | GetAccessToken () |
| void | SetAccessToken (string val) |
| virtual void | Destroy () |
| 释放资源 | |
| Viewer | CreateView (int hwndHost, uint width, uint height) |
| 在已有窗口上创建3D视图 | |
| Viewer | CreateWindow3D (string title, uint width, uint height, bool visible) |
| 创建独立3D窗口 | |
| void | SetActiveViewer (Viewer viewer) |
| 设置活动视图 | |
| virtual void | InstallListener (Viewer viewer) |
| 安装默认消息监听器 | |
| int | GetCommandStatus (string name) |
| 获取命令状态 | |
| 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) |
| 查询命令结果(JSON版本) | |
| string | QueryCommand (string name) |
| 查询命令结果(JSON版本) | |
| bool | Input (string parameters) |
| 向当前编辑器输入参数 | |
| bool | Input (ParameterDict parameters) |
| 向当前编辑器输入参数(字典版本) | |
| bool | ExecuteEditorAction (string name, string params_) |
| 执行编辑器的子命令 | |
| bool | ExecuteEditorAction (string name) |
| 执行编辑器的子命令 | |
| bool | ExecuteEditorAction (string name, ParameterDict parameters) |
| 执行编辑器的子命令(字典版本) | |
| void | AddEventListener (AppEventListener pListener) |
| 添加应用级事件监听器 | |
| void | RemoveEventListener (AppEventListener pListener) |
| 移除事件监听器 | |
| Vector2 | GetDpiScale () |
| 获取显示器DPI缩放系数 | |
| void | SetActiveViewer (IRenderView viewer) |
| 设置当前视图 | |
静态 Public 成员函数 | |
| static GeoApplication | Instance () |
| static GeoApplication | GetInstance () |
静态 Public 成员函数 继承自 AnyCAD.Foundation.BaseApplication | |
| static bool | InternalRegisterSdk (string a, string b, string d, string e, string f) |
| static bool | InternalLoadResources (Path baseDirectory, string appName) |
几何应用程序管理器
GeoApplication是几何模块的应用程序管理类,负责初始化和管理几何内核的全局状态。 作为单例类,它提供了统一的入口点来配置和启动几何建模环境。
|
virtual |
初始化几何应用程序
| baseExe | 基础可执行文件路径 |
初始化几何内核、加载必要的资源文件和配置参数。 这是使用几何模块前必须调用的方法。