Jump to content
Sign in to follow this  
Cleyton Ramos

Instersectwidth

Recommended Posts

Cleyton Ramos

Hello!

 

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

Can you post a simple example?

thankfull

Edited by Cleyton Ramos

Share this post


Link to post
Share on other sites
Cad64

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.

Share this post


Link to post
Share on other sites
Cleyton Ramos
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

Share this post


Link to post
Share on other sites
Cleyton Ramos
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

Share this post


Link to post
Share on other sites
BIGAL

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

Share this post


Link to post
Share on other sites
Cleyton Ramos

Thanks !

Share this post


Link to post
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Sign in to follow this  

×
×
  • Create New...