|
|
@@ -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)) {
|