- 积分
- 8579
- 明经币
- 个
- 注册时间
- 2004-6-10
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2023-6-28 08:53:02
|
显示全部楼层
NativeMethods.SetFocus(Core.Application.DocumentManager.MdiActiveDocument.Window.Handle) 'CAD获得焦点
Dim pClt1 = New Point3dCollection()
Dim ppRes As PromptPointResult = ed.GetPoint(vbLf & "指定开始点>")
While ppRes.Status = PromptStatus.OK
Dim ppOpt = New PromptPointOptions("") With {
.AllowNone = True, '右键退出
.UseBasePoint = True,
.UseDashedLine = True,
.Message = vbLf & "右键退出 [指定第 " & js & " 点>]: "}
pClt1.Add(ppRes.Value)
ppOpt.BasePoint = ppRes.Value
ppRes = ed.GetPoint(ppOpt)
S &= js & " , " & js & " , " & ppRes.Value(1).ToString("0.000") & " , " & ppRes.Value(0).ToString("0.000") & " , " & ppRes.Value(2).ToString("0.000") & vbCrLf
js += 1
End While |
|