优化:选择交互

pull/3024/MERGE
ChenX 1 month ago
parent 2c20089066
commit 9d74d6b36b

@ -24,7 +24,10 @@ export class ChangeColorByLinesType implements Command
intent: Intent.SUCCESS,
}, "ChangeColorByLinesType");
let ssRes = await app.Editor.GetSelection({ Filter: { filterTypes: [Board] }, UseSelect: true });
let ssRes = await app.Editor.GetSelection({
Msg: `选择板件,根据板件纹路修改颜色`,
Filter: { filterTypes: [Board] }, UseSelect: true
});
if (ssRes.Status !== PromptStatus.OK) return;
let ents = ssRes.SelectSet.SelectEntityList as Board[];
const oldColorMap = new Map<Board, number>();

@ -34,6 +34,7 @@ export class ChangeColorByMaterial implements Command
while (true)
{
brRes = await app.Editor.GetSelection({
UseSelect: true,
Msg: `选择板件,根据板材名称修改颜色`,
Filter: { filterTypes: [Board] },
KeyWordList: [{ key: "S", msg: "修改区分板材规则" }],

@ -32,6 +32,7 @@ export class ChangeColorByRoomCabinet implements Command
while (true)
{
brRes = await app.Editor.GetSelection({
UseSelect: true,
Msg: `选择板件,根据房间名柜名修改颜色`,
Filter: { filterTypes: [Board] },
KeyWordList: [{ key: "S", msg: "修改区分颜色规则" }],

Loading…
Cancel
Save