/// <summary> /// 开始导出 /// </summary> /// <param name="uidoc"></param> /// <param name="view"></param> /// <param name="setting"></param> /// <param name="progressCallback"></param> /// <param name="cancellationToken"></param> private void StartExport(UIDocument uidoc, View3D view, ExportSetting setting, Action <int> progressCallback, CancellationToken cancellationToken) { using (var log = new RuntimeLog()) { var exporter = new ExporterX(InnerApp.GetHomePath()); exporter.Export(view, uidoc, setting, log, progressCallback, cancellationToken); } }
/// <summary> /// 开始导出 /// </summary> /// <param name="uidoc"></param> /// <param name="view"></param> /// <param name="localConfig"></param> /// <param name="features"></param> /// <param name="progressCallback"></param> /// <param name="cancellationToken"></param> private void StartExport(UIDocument uidoc, View3D view, AppConfigGltf localConfig, Dictionary <FeatureType, bool> features, Action <int> progressCallback, CancellationToken cancellationToken) { using (var log = new RuntimeLog()) { var featureList = features?.Where(x => x.Value).Select(x => x.Key).ToList() ?? new List <FeatureType>(); var elementIdList = _ElementIds?.Where(x => x.Value).Select(x => x.Key).ToList(); var exporter = new ExporterX(InnerApp.GetHomePath()); exporter.Export( uidoc, view, localConfig.LevelOfDetail, localConfig.LastTargetPath, featureList, elementIdList, log, progressCallback, cancellationToken ); } }