|
|
@ -32,8 +32,19 @@ export class FeedingCommand implements Command
|
|
|
|
let distRes = await app.Editor.GetDistance({ Msg: "请点击或输入矩形槽走刀冗余值:", Default: redundancyKnif });
|
|
|
|
let distRes = await app.Editor.GetDistance({ Msg: "请点击或输入矩形槽走刀冗余值:", Default: redundancyKnif });
|
|
|
|
if (distRes.Status === PromptStatus.OK)
|
|
|
|
if (distRes.Status === PromptStatus.OK)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
redundancyKnif = distRes.Distance;
|
|
|
|
if (distRes.Distance > 2 || distRes.Distance < 0)
|
|
|
|
prompt.Msg = `选择板件,矩形槽刀冗余${redundancyKnif}:`;
|
|
|
|
{
|
|
|
|
|
|
|
|
AppToaster.show({
|
|
|
|
|
|
|
|
message: "矩形槽刀路冗余值要在0-2之间",
|
|
|
|
|
|
|
|
timeout: 5000,
|
|
|
|
|
|
|
|
intent: Intent.DANGER,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
redundancyKnif = distRes.Distance;
|
|
|
|
|
|
|
|
prompt.Msg = `选择板件,矩形槽刀冗余${redundancyKnif}:`;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|