VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

a point on a polyline at a specified distance

2 REPLIES 2
Reply
Message 1 of 3
kedhas
472 Views, 2 Replies

a point on a polyline at a specified distance

I'm having a trouble in locating a point on a polyline at a specified distance from the begining of the polyline in VBA application which I'm developing.
Can any one give me a clue?
2 REPLIES 2
Message 2 of 3
EY
Observer
in reply to: kedhas

To solve the distance on a pline you can build a 2D array containing the infomation of length, starting/ending points' coordinates, center coordinates, buldge etc. for each segment in the pline. And, the 2D array variable should be made public variable. I call it SegArray().
The attached is the my trail version. It can measure the length along a pline between any two given points. Bugs may occur when analyzing a curve. However, this program shows one option to solve the problem.

Good luck.
Eddy Yang
Message 3 of 3
Anonymous
in reply to: kedhas

Hi kedhas,

It requires calls to lisp, but if you search Google for "vlax curve
class" you will find an easy to use set of tools which not only give a
one line solution to your question, but lots of other functionality as well.

Regards,


Laurie Comerford


kedhas wrote:
> I'm having a trouble in locating a point on a polyline at a specified distance from the begining of the polyline in VBA application which I'm developing.
> Can any one give me a clue?
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost