ソースを参照

DXF 鼠标自助选择

zhanghaijun 2 年 前
親
コミット
53e52701df
共有1 個のファイルを変更した、4 個の追加 と 4 個の削除を含む
  1. 4 4
      scripts/Data/GroundDataImport/DXFImport/DXFImport.js

+ 4 - 4
scripts/Data/GroundDataImport/DXFImport/DXFImport.js

@@ -55,7 +55,7 @@ DXFImport.prototype = new Paste();
 DXFImport.includeBasePath = includeBasePath;
 
 DXFImport.prototype.beginEvent = function () {
-  // Paste.prototype.beginEvent.call(this);
+  Paste.prototype.beginEvent.call(this);
 
   var fileDialogInfo;
   if (!isNull(this.fileName)) {
@@ -82,10 +82,10 @@ DXFImport.prototype.beginEvent = function () {
   // var ok = this.readTxt(fileDialogInfo[0]);
   try {
     // 只再平面上加载
-    var di = getAssignDocumentInterface(1); // this.getDocumentInterface();
+    var di = getAssignDocumentInterface(1); // this.sourceDi; // this.getDocumentInterface();
     var file = di.importFile(fileDialogInfo[0], fileDialogInfo[1], false);
-    di.regenerateScenes();
-    di.autoZoom();
+    // di.regenerateScenes();
+    // di.autoZoom();
     if (file !== RDocumentInterface.IoErrorNoError) {
       EAction.handleUserWarning(qsTr("Error while importing file %1").arg(fileDialogInfo[0]));
       if (!isNull(this.sourceDi)) {