BillZndl, Jeff H
dblRot = pt10.GetVectorTo(pt20).Angle.ToString()
I thought I was getting the angle of the selected screen points returned in radians. I was using 2d points.
I didn't know you couldn't get that angle from the point3d using the same code.
My goal was to get the xaxis from selected point3d locations.
Jeff H sample has the two selected points like I wanted but I wanted to change the prompt to something other than Specify second point. I didn't know how to do that other than add the
pPtOpts.Message = vbLf & "Enter direction for PT2"
my goal is to select two points on screen to describe a line or polyline then draw another line at the same direction as that line described by the first & second pick points. that would be point3. Point3 is set 100 feet from point2 with the same xaxis in radians. at point3 finally I want to set two lines each 90 degrees left and right at 100 feet. If I can work thru a sample that basically draws a box some distance from the two selected screen picks at 90 degrees to the xaxis of that line. if you have links that might describe in more detail I'd be interested
I was trying to use the polarpoint to do this. that is what I used in vba to construct the same type of line work.
Dim Point100 As Point3d = PolarPoints(pt2, (pi + dblRot), 100)
Point101 = PolarPoints(Point100, (pi + dblRot), -10)
Point102 = PolarPoints(Point100, (1.570796327 + dblRot), -100)
Point103 = PolarPoints(Point100, (1.570796327 + dblRot), 100)
Point104 = PolarPoints(Point101, (1.570796327 + dblRot), -100)
Point105 = PolarPoints(Point101, (1.570796327 + dblRot), 100)
'draw polys or lines thru these points
Dim acLine1 = New Line(Point102, Point103)
Dim acLine2 = New Line(Point103, Point105)
Dim acLine3 = New Line(Point105, Point104)
Dim acLine4 = New Line(Point104, Point102)