(资料图片)
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); }。
本文到此分享完毕,希望对大家有所帮助。