public partial class Form1 : Form { private SGWorld66 sgworld; public Form1() { InitializeComponent(); sgworld = new SGWorld66(); } private void Form1_Load(object sender, EventArgs e) { // Register to OnLoadFinished globe event sgworld.OnLoadFinished += new _ISGWorld66Events_OnLoadFinishedEventHandler(OnProjectLoadFinished); // Open Project in asynchronous mode string flyFile = "https://www.skylinesoft.com/SkylineGlobe/WebClient/PresentationLayer/WebClient/SkyglobeLB.fly"; sgworld.Project.Open(flyFile, true, null, null); MessageBox.Show("Opening project " + flyFile + " in async mode"); } void OnProjectLoadFinished() { MessageBox.Show("Received project loaded event. Click OK to fly to Washington DC."); IPosition66 Washington = sgworld.Creator.CreatePosition(-77.036667, 38.895111, 1500, AltitudeTypeCode.ATC_TERRAIN_RELATIVE, 0, 0, 0, 0); sgworld.Navigate.FlyTo(Washington); } }
© 2019 Skyline Software Systems Inc.
Privacy
Legal
Community