1 / 179
文档名称:

skyline_API详细使用说明手册.doc

格式:doc   大小:1,267KB   页数:179页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

skyline_API详细使用说明手册.doc

上传人:2890135236 2016/8/4 文件大小:1.24 MB

下载得到文件列表

skyline_API详细使用说明手册.doc

相关文档

文档介绍

文档介绍:..... ..... 1T er raExp lor erA PI简介 TerraExplorer API 提供了一套强大的接口用来集成TerraExplore r、 TerraExplorer Pro 和用户自定义应用。它提供了一些访问外部信息扩展的方法, 比如: 访问数据库或基础地理空间数据。 协议为基础的 API 接口都可以通过脚本语言操作(例如 Javascript ), 也可以通过非脚本语言来控制操作(例如: C++ 、VB、delphi )。 TerraExplorer 也提供了一套 ActiveX 控件, 可将 3D 窗口、信息树和导航图以控件对象的方式嵌入到用户自定义的可视化界面中, 其中,Runtime 模块使得用户自定义的应用程序更易分发。 IT erraExplorer5 描述用户接口的相关细节, 例如当前用户使用的软件版本信息、单位参数(长度单位、速度单位等)、工程文件加载和保存等。 ITerraExplorer 属性: Type , FlyName , DisplayErrorMessages 方法: Load , SetCPUSavingMode , GetUserUnits , GetTEVersion , Lo a dEx , Save , Save As, SetPara m, GetParam (1) Load 方法: HRESULT Load([in] BSTR URL) 其中 URL 是fly 或mpt 文件的完整路径。 C# :(第一次举例是完整代码, 主要部分为粗体部分, 以后的例子只写主要部分,下面接口例子的其他代码与此例类似,其中加载保存路径读者可以自行设定) using System; using ; using T erraExplo r erX; names p ace Loa d_T est { public p artial class F orm1 : Form { pri v ate T erraE x plorerClass obj T erraExplorer; ..... ..... public Form1() { ponent ( ); } private void Lo a dbutton _ Click(object se n de r, EventA r gs e) { obj T erraExplorer = new T erraExplorerClass(); obj T erraExplore r .Load( @"E:\Sk y line Pro In terface\ 数据\数据\ ly" );}}} VBscript: (其中黑体部分是主要部分) <html> <hea d> <me ta http-equiv= "C ont e nt- Typ e"c ontent="text/html; charset=gb2 3 12"> <title>Load< /t itle> </head> <script ty pe="te x t/v bscript"> Sub Load() set IT erraE x plorer5= a ce("I Te rraExplor e r5") IT "E:\S ky line Pro Interface\ 数据\数据\ ly" end Sub </script> <bo dy lef tm a rgin=" 0" topmargin= " 0"> <input type = "button" val u e="L o ad" on Click="Load ( )"> <t able wid th="100%" he i ght="1 0 0%" bor d er=" 1 "> <tr> <t d><OBJECT ID= "T erraExplorerInformation W ind ow" CLASSID="CLSID:3a4 f 919 3 -65 a8 -1 1d5-8 5 c1 -00 010 2 39 5 2c 1" wid th="200" height="760"></OBJECT></ t d> <t d><OBJECT ID= "T erraExplorer3D W indo w" CLASSID="CLSID:3a4 f 919 2 -65 a8 -1 1d5-8 5 c1 -00 010 2 39 5 2c 1" wid th=800 height=760 > </OBJECT > </t d> </tr> </t able>