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