明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 432|回复: 1

连续拾取点(提示点序号) 已解决

[复制链接]
发表于 2023-6-28 08:44 | 显示全部楼层 |阅读模式
本帖最后由 pmq 于 2023-6-28 08:53 编辑

NativeMethods.SetFocus(Core.Application.DocumentManager.MdiActiveDocument.Window.Handle) 'CAD获得焦点   

                            Dim pClt1 = New Point3dCollection()
                            Dim ppOpt = New PromptPointOptions("") With {
                                .AllowNone = True, '右键退出
                                .UseBasePoint = True,
                                .UseDashedLine = True,
                                .Message = vbLf & "右键退出 [指定第 " & js & " 点>]: "}
                            Dim ppRes As PromptPointResult = ed.GetPoint(vbLf & "指定开始点>")

                            While ppRes.Status = PromptStatus.OK
                                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

怎样使得上面的 js 的值也跟随变
 楼主| 发表于 2023-6-28 08:53 | 显示全部楼层
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-4-28 06:39 , Processed in 0.195279 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表