1 Attachment(s)
Dissecting a line with two points.
I want to dissect a given polyline with two specified points using VBA.
I have attached the drawing picture.
The green line is the polyline, whereas the circles indicate points of limits.
I can do this by using Break at point command, but I want to use VBA to do it for me by selecting the polyline
and the point of intersection.
help anyone.
Thank You
Re: Dissecting a line with two points.
What version of AutoCAD do you have? 2021 now has the break-at-point option as it's own command. You could simply hit return to repeat the command and select the second point. If you still want to use vba, would need to use the IntersectWith method to do this. You can search this forum for more samples of the method.
Re: Dissecting a line with two points.
The version is 2007.
What I want is by just telling the points it would some how dissect the line.
Thank you.
Re: Dissecting a line with two points.
[QUOTE=estuyose791044;1346950]The version is 2007.
What I want is by just telling the points it would some how dissect the line.
I will look further. Thank you for the link it is really helpful.
Thank you.
Re: Dissecting a line with two points.
Thanks for your explanation about Dissecting a line with two points which is very useful.It solves all my queries about this topic.Thanks again.