getPointAtDist() to return a NON-Vertex point on the Polyline...

getPointAtDist() to return a NON-Vertex point on the Polyline...

Anonymous
Not applicable
319 Views
2 Replies
Message 1 of 3

getPointAtDist() to return a NON-Vertex point on the Polyline...

Anonymous
Not applicable
Hey guys,

I need to get the coordinates of a point on my polyline, which is at a specific distance from the start point of my polyline. When I use the getPointAtDist() function, it returns the closest vertex to that point which is apparently not what I want. Is there something wrong or is this function supposed to only return vertices?? I mean what if my distance does not have a vertex at??

If it is so I think I could add a vertex to my polyline by means of PEDIT command, but the problem to that is I can't give it a distance on the curve 😞

If you guys could please provide me a solution, I'd really really appreciate it 😞

Regards, Omid Manikhi
0 Likes
320 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I just looked at the code for 2d, 3d, and lightweight polylines and they are
all coded to return points between vertices if that's where the distance
specifies. I don't know what's going on in your case to cause only vertex
points to be returned.

wrote in message news:4936187@discussion.autodesk.com...
Hey guys,

I need to get the coordinates of a point on my polyline, which is at a
specific distance from the start point of my polyline. When I use the
getPointAtDist() function, it returns the closest vertex to that point which
is apparently not what I want. Is there something wrong or is this function
supposed to only return vertices?? I mean what if my distance does not have
a vertex at??

If it is so I think I could add a vertex to my polyline by means of PEDIT
command, but the problem to that is I can't give it a distance on the curve
:(

If you guys could please provide me a solution, I'd really really appreciate
it 😞

Regards, Omid Manikhi
0 Likes
Message 3 of 3

Anonymous
Not applicable
Hi,

Thank you very very much for your response and your effort. In fact you made me realize that the getPointAtDist functions, work as I expected they would. So I found out there was something wrong with my code. As far as I was using the point to draw a line, with the LINE command, I realized that it is obeying the OSNAP settings!, so it would snap the point at the nearest vertex. Instead I added the line to the database through an AcDbLine object, and it works now!

Thank you very very very much again Mr. Cooney.

Regards, Omid Manikhi
0 Likes