|
|
@@ -81,7 +81,8 @@ DXFImport.prototype.beginEvent = function () {
|
|
|
}
|
|
|
// var ok = this.readTxt(fileDialogInfo[0]);
|
|
|
try {
|
|
|
- var di = this.getDocumentInterface(); // getAssignDocumentInterface(1);
|
|
|
+ // 只再平面上加载
|
|
|
+ var di = getAssignDocumentInterface(1); // this.getDocumentInterface();
|
|
|
var file = di.importFile(fileDialogInfo[0], fileDialogInfo[1], false);
|
|
|
di.regenerateScenes();
|
|
|
di.autoZoom();
|
|
|
@@ -94,12 +95,10 @@ DXFImport.prototype.beginEvent = function () {
|
|
|
this.terminate();
|
|
|
}
|
|
|
var entities = this.sourceDocument.queryAllEntities(false, false, RS.EntityImage);
|
|
|
- EAction.handleUserWarning("entities: " + entities.toString());
|
|
|
for (var i = 0; i < entities.length; i++) {
|
|
|
var entityId = entities[i];
|
|
|
var direct = this.sourceDocument.queryEntityDirect(entityId);
|
|
|
var scale = direct.scale(new RVector(0.001, 0.001), new RVector(0, 0));
|
|
|
- EAction.handleUserWarning("scale: " + scale.toString());
|
|
|
}
|
|
|
return;
|
|
|
} catch (error) {
|