(资料图)
1、openFileDialog1.Filter = "Scene文档(*.sxd)|*.sxd"; openFileDialog1.ShowDialog(); string filename = openFileDialog1.FileName; if (axSceneControl1.CheckSxFile(filename)) axSceneControl1.LoadSxFile(filename); else { IScene pScene = axSceneControl1.Scene; IMemoryBlobStream mbStream = new MemoryBlobStreamClass(); IObjectStream objectStream = new ObjectStreamClass(); mbStream.LoadFromFile(filename); IPersistStream pPersistStream = (ESRI.ArcGIS.esriSystem.IPersistStream)pScene; ***.Stream = mbStream; pPersistStream.Load(objectStream); }。
本文到此分享完毕,希望对大家有所帮助。
Copyright @ 2015-2022 IT产业网版权所有 关于我们 备案号: 沪ICP备2022005074号-4 联系邮箱:58 55 97 3@qq.com