(资料图)
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 亚洲动漫网版权所有 备案号:京ICP备2021034106号-51 联系邮箱:5 516 538 @qq.com