RufussMcGee
Technical User
Having trouble getting distance between to known points in my VBA program. This is the line I wrote but it does not seem to like it.
Dim Pt3(2) as double
Dim Pt5(2) as double
Dim LenD as double
Pt3(0) = 0#: Pt3(1) = 0#: Pt3(2) = 0#
Pt5(0) = 2#: Pt5(1) = 4#: Pt5(2) = 0#
LenD = ThisDrawing.Utility.GetDistance(Pt3, Pt5)
MsgBox (LenD)
The whole code is more then just that but you get the general idea. Does anyone might have the solution?
Thanks.
May the Code be with you.
Dim Pt3(2) as double
Dim Pt5(2) as double
Dim LenD as double
Pt3(0) = 0#: Pt3(1) = 0#: Pt3(2) = 0#
Pt5(0) = 2#: Pt5(1) = 4#: Pt5(2) = 0#
LenD = ThisDrawing.Utility.GetDistance(Pt3, Pt5)
MsgBox (LenD)
The whole code is more then just that but you get the general idea. Does anyone might have the solution?
Thanks.
May the Code be with you.