|
|
@ -7,11 +7,19 @@ import { PromptStatus, PromptEntityResult } from '../Editor/PromptResult';
|
|
|
|
export class CMD_DrawPoint implements Command
|
|
|
|
export class CMD_DrawPoint implements Command
|
|
|
|
{
|
|
|
|
{
|
|
|
|
async exec()
|
|
|
|
async exec()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
while (true)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let ptRes = await app.m_Editor.GetPoint({ Msg: "请输入或点取点的位置" });
|
|
|
|
let ptRes = await app.m_Editor.GetPoint({ Msg: "请输入或点取点的位置" });
|
|
|
|
if (ptRes.Status != PromptStatus.OK)
|
|
|
|
if (ptRes.Status != PromptStatus.OK)
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
let ptEnt = new Point(ptRes.Value);
|
|
|
|
let ptEnt = new Point(ptRes.Value);
|
|
|
|
app.m_Database.ModelSpace.Append(ptEnt);
|
|
|
|
app.m_Database.ModelSpace.Append(ptEnt);
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|