|
|
|
@ -76,7 +76,7 @@ export abstract class DrawBoardTool implements Command
|
|
|
|
|
|
|
|
|
|
if (spaceParse.Spaces.length === 0)
|
|
|
|
|
{
|
|
|
|
|
app.m_Editor.m_CommandStore.Prompt("生成板件失败,没分析出有效空间");
|
|
|
|
|
app.m_Editor.Prompt("生成板件失败,没分析出有效空间");
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -111,7 +111,7 @@ export abstract class DrawBoardTool implements Command
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
app.m_Editor.m_CommandStore.Prompt("请选择有效的板件,或者周围没有效板件");
|
|
|
|
|
app.m_Editor.Prompt("请选择有效的板件,或者周围没有效板件");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -158,7 +158,7 @@ export abstract class DrawBoardTool implements Command
|
|
|
|
|
|
|
|
|
|
if (spaceParse.Spaces.length === 0)
|
|
|
|
|
{
|
|
|
|
|
app.m_Editor.m_CommandStore.Prompt("生成板件失败");
|
|
|
|
|
app.m_Editor.Prompt("生成板件失败");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let mat = spaceParse.SpaceOCS;
|
|
|
|
@ -170,7 +170,7 @@ export abstract class DrawBoardTool implements Command
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
app.m_Editor.m_CommandStore.Prompt("请选择板件")
|
|
|
|
|
app.m_Editor.Prompt("请选择板件")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private async DrawInALlBoxes(opt: BoardOption)
|
|
|
|
@ -188,7 +188,7 @@ export abstract class DrawBoardTool implements Command
|
|
|
|
|
|
|
|
|
|
if (spaceParse.Spaces.length === 0)
|
|
|
|
|
{
|
|
|
|
|
app.m_Editor.m_CommandStore.Prompt("生成板件失败");
|
|
|
|
|
app.m_Editor.Prompt("生成板件失败");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let ro = new Matrix4().extractRotation(spaceParse.SpaceOCS);
|
|
|
|
@ -201,7 +201,7 @@ export abstract class DrawBoardTool implements Command
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
app.m_Editor.m_CommandStore.Prompt("请选择板件")
|
|
|
|
|
app.m_Editor.Prompt("请选择板件")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|