Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to realize Multi-ball Joint Development by TE7

Shulou Source: shulou.com Published: 2022-06-01 03:39:18 11月14日 Update

This article mainly introduces TE7 how to achieve multi-ball linkage development, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

In the development of some systems, functions such as scheme comparison need to load multiple three-dimensional spheres and achieve the linkage effect of three-dimensional spheres. The three-dimensional development of skyline supports multiple balls to load together to achieve the effect.

For the specific function implementation, take the development of BS as an example, only the loading mode of the control in CS development is different:

Load multiple 3D controls on the window. The id of each control is different, and the CLASSID is the same. Here are three Earth window controls loaded.

In the js code, define the sgworld object interface, each of which needs to be initialized according to the different id of the window

SGWorld = TerraExplorer3DWindowEx.CreateInstance ("TerraExplorerX.SGWorld70")

SGWorld1 = TerraExplorer3DWindowEx1.CreateInstance ("TerraExplorerX.SGWorld70")

SGWorld2 = TerraExplorer3DWindowEx2.CreateInstance ("TerraExplorerX.SGWorld70")

Next, open the three-window fly file according to TE's API.

SGWorld.Project.Open ("fly File address", false, ",")

SGWorld1.Project.Open ("fly1 File address", false, ",")

SGWorld3.Project.Open ("fly2 File address", false, ",")

To achieve the linkage effect of three balls, you need to call the following method in TE API. This method can also achieve that several of the balls have a certain position difference, but not all of them need to be exactly the same.

SGWorld1.Application.Multiple3DWindows.LinkPosition (SGWorld,0,0,0,0,0,0)

SGWorld2.Application.Multiple3DWindows.LinkPosition (SGWorld,0,0,0,0,0,0)

Realize the effect picture:

Thank you for reading this article carefully. I hope the article "how to achieve multi-ball joint development of TE7" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Development controls effects files articles 3D multi-ball different address function multiple interface support same next code value location interest just Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Information OPPO Reno Microsoft MySQL