Cleyton Ramos Posted October 12, 2018 Share Posted October 12, 2018 (edited) Hello! I'm having trouble getting the intersection points on a straight line. Can you post a simple example? thankfull Edited October 12, 2018 by Cleyton Ramos Quote Link to comment Share on other sites More sharing options...
Cad64 Posted October 12, 2018 Share Posted October 12, 2018 A straight line doesn't have any intersection points. I assume you're trying to get the intersection point of crossing lines, so check the "Z" elevation of all lines and make sure they are all at the same elevation. Quote Link to comment Share on other sites More sharing options...
Cleyton Ramos Posted October 12, 2018 Author Share Posted October 12, 2018 (edited) Right. They are lines that intercede a line. all in the same plane z. I make a selection without clicking the line or polyline, identifying the layer and so I read the line and I want to intercept the obstacles that intersect this line. Edited October 12, 2018 by Cleyton Ramos Quote Link to comment Share on other sites More sharing options...
Cleyton Ramos Posted October 12, 2018 Author Share Posted October 12, 2018 Hello! I was able to solve this problem, but I would like to read it from left to right of segment. How to do in this case? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 14, 2018 Share Posted October 14, 2018 If you obtain a selection set of the verticals you can sort on the X value making a list of the points in order. So pick line then use a ssget "F" to pick verticals. ; eg code (vl-sort '((1 3) (2 2) (3 1)) (function (lambda (e1 e2) (< (cadr e1) (cadr e2))))) ((3 1) (2 2) (1 3)) Quote Link to comment Share on other sites More sharing options...
Cleyton Ramos Posted October 15, 2018 Author Share Posted October 15, 2018 Thanks ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.