修复:避免显示所有在布局下无法使用,避免隐藏的图框被打印

pull/1482/head
ChenX 3 years ago
parent 31a35274e7
commit f81f90e0bf

@ -45,7 +45,7 @@ export class Command_ShowAll implements Command
return;
}
for (let en of app.Database.ModelSpace.Entitys)
for (let en of app.LayoutTool.CurrentSpace.Entitys)
{
if (!en.IsErase)//图形没有被删除才应该显示
en.Visible = true;
@ -71,7 +71,7 @@ export class Command_HideUnselected implements Command
}
let set = new Set(selects);
let hideEnts = app.Database.ModelSpace.Entitys.filter(o =>
let hideEnts = app.LayoutTool.CurrentSpace.Entitys.filter(o =>
{
return !o.IsErase && !set.has(o) && !(o instanceof Light);
});

@ -26,7 +26,7 @@ export class OneKeyPrint implements Command
for (let en of app.Database.LayoutSpace.Entitys)
{
if (en.IsErase) continue;
if (en.IsErase || !en.Visible) continue;
if (en.GroupId?.Object)
{

Loading…
Cancel
Save