|
AnyCAD Rapid API 2023
Help you to create a better world!
|
Public 成员函数 | |
| Viewer | GetActiveViewer () |
| void | SetActiveViewer (Viewer val) |
| boolean | Initialize (Path baseDirectory, boolean useSync) |
| void | Destroy () |
| Viewer | CreateView (int hwndHost, long width, long height) |
| Viewer | CreateWindow3D (String title, long width, long height, boolean visible) |
| Document | CreateDocument (String name) |
| Document | GetActiveDocument () |
| void | SetActiveDocument (Document doc) |
| boolean | ExecuteCommand (String name, String params) |
| boolean | ExecuteCommand (String name) |
| boolean | ExecuteCommand (String name, ParameterDict params) |
| String | QueryCommand (String name, ParameterDict params) |
| String | QueryCommand (String name, String params) |
| String | QueryCommand (String name) |
| void | ShowDocument (Document doc) |
| boolean | Input (String parameters) |
| boolean | Input (ParameterDict params) |
| void | AddEventListener (AppEventListener pListener) |
| void | RemoveEventListener (AppEventListener pListener) |
| Vector2 | GetDpiScale () |
静态 Public 成员函数 | |
| static Application | Instance () |
<> 应用程序管理
全局唯一
| Document Application.CreateDocument | ( | String | name | ) |
创建文档。
| name | 文档名称 |
| Viewer Application.CreateView | ( | int | hwndHost, |
| long | width, | ||
| long | height | ||
| ) |
基于已有的窗口控件上创建三维显示视图
| hwndHost | the host window handle. |
| width | the width |
| height | the height |
| Viewer Application.CreateWindow3D | ( | String | title, |
| long | width, | ||
| long | height, | ||
| boolean | visible | ||
| ) |
创建一个独立的三维窗口.
| title | the title |
| width | the width |
| height | the height |
| visible | if visible. |
| void Application.Destroy | ( | ) |
释放资源
| boolean Application.ExecuteCommand | ( | String | name | ) |
执行命令
| name | 命令名称 |
| boolean Application.ExecuteCommand | ( | String | name, |
| String | params | ||
| ) |
执行命令
| name | 命令名称 |
| params | 与ParameterDict兼容的JSON对象字符串 |
| boolean Application.Initialize | ( | Path | baseDirectory, |
| boolean | useSync | ||
| ) |
初始化。内部调用
| baseDirectory | 程序所在的路径 |
| useSync | 是否启用数据同步 |
| String Application.QueryCommand | ( | String | name, |
| ParameterDict | params | ||
| ) |
查询
| name | 命令 |
| params | 参数 |
| void Application.SetActiveDocument | ( | Document | doc | ) |
设置当前活动的文档
| doc | 文档对象 |