|
|
@ -17,7 +17,7 @@ export class Command_Copy implements Command
|
|
|
|
if (ssRes.Status !== PromptStatus.OK)
|
|
|
|
if (ssRes.Status !== PromptStatus.OK)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
let ptRes = await app.Editor.GetPoint({ Msg: "请选择复制基点:" });
|
|
|
|
let ptRes = await app.Editor.GetPoint({ Msg: "请选择复制基点:", AllowNone: true });
|
|
|
|
if (ptRes.Status !== PromptStatus.OK)
|
|
|
|
if (ptRes.Status !== PromptStatus.OK)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
@ -39,6 +39,7 @@ export class Command_Copy implements Command
|
|
|
|
{
|
|
|
|
{
|
|
|
|
app.Database.hm.StartMark();
|
|
|
|
app.Database.hm.StartMark();
|
|
|
|
let ptRes2 = await app.Editor.GetPoint({
|
|
|
|
let ptRes2 = await app.Editor.GetPoint({
|
|
|
|
|
|
|
|
AllowNone: true,
|
|
|
|
Msg: "请选择复制终点:",
|
|
|
|
Msg: "请选择复制终点:",
|
|
|
|
Callback: (p) =>
|
|
|
|
Callback: (p) =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|