You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/src/Add-on/EntityMoveToZ0.ts

17 lines
499 B

import { Command } from "../Editor/CommandMachine";
import { app } from "../ApplicationServices/Application";
import { PromptStatus } from "../Editor/PromptResult";
export class Command_EntitytMoveToZ0 implements Command
{
async exec()
{
let ssRes = await app.Editor.GetSelection({ Msg: "选择实体:", UseSelect: true });
if (ssRes.Status !== PromptStatus.OK) return;
for (let e of ssRes.SelectSet.SelectEntityList)
{
e.Z0();
}
}
}