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

几何应用程序管理器 更多...

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

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是几何模块的应用程序管理类,负责初始化和管理几何内核的全局状态。 作为单例类,它提供了统一的入口点来配置和启动几何建模环境。

成员函数说明

◆ Initialize()

override bool AnyCAD.Foundation.GeoApplication.Initialize ( Path baseExe)
virtual

初始化几何应用程序

参数
baseExe基础可执行文件路径
返回
如果初始化成功则返回true,否则返回false

初始化几何内核、加载必要的资源文件和配置参数。 这是使用几何模块前必须调用的方法。

重载 AnyCAD.Foundation.BaseApplication .