Jump to content

Recommended Posts

Posted (edited)

Hello!

 

I'm having trouble getting the intersection points on a straight line.

Can you post a simple example?

thankfull

Edited by Cleyton Ramos
Posted

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.

Posted (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 by Cleyton Ramos
Posted
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?

 

 

segm.jpg

Posted

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))

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...