通过使用对象提供的方法,您可以快速解决数学问题或定位图形上的点。Utility 通过在对象上使用方法,可以执行以下操作:Utility
使用 GetDistance 方法查找两点之间的距离此示例使用方法获取点坐标,并使用函数显示计算的距离。GetDistanceMsgBox Sub Ch3_GetDistanceBetweenTwoPoints() Dim returnDist As Double ' Return the value entered by user. A prompt is provided. returnDist = ThisDrawing.Utility.GetDistance(, "Pick two points.") MsgBox "The distance between the two points is: " & returnDist End Sub |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )
GMT+8, 2024-5-12 00:10
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.