/// <summary> /// 先在窗体上添加LicenceControl控件 /// Enable 3D analysis /// </summary> public void Enable3DAnalysis() { ESRI.ArcGIS.esriSystem.IExtensionManagerAdmin iExtensionManagerAdmin = new ESRI.ArcGIS.esriSystem.ExtensionManagerClass(); UID iUid3D = new UIDClass(); iUid3D.Value = "{94305472-592E-11D4-80EE-00C04FA0ADF8}"; object o = new object(); iExtensionManagerAdmin.AddExtension(iUid3D, ref o); IExtensionConfig iExtensionConfig = (IExtensionConfig)(iExtensionManagerAdmin as IExtensionManager).FindExtension(iUid3D); iExtensionConfig.State = esriExtensionState.esriESEnabled; }