Jump to content

lisp for Add vertex on intersecting 3d polyline with elevation


MOHITGAUR

Recommended Posts

This lisp not work all the time (Specially large lines) but when selecting both line (One long 3dpolyline and one vertical 3Dpolyline), its gives us vertex on small vertical line.

Could you take a look again please?

Link to comment
Share on other sites

I need vertex on each 3Dpolylines intersection with interpolate elevation in batch mode. 

 

Please refer attached image after lisp result.

 

Thanks to give your valuable time.

Lisp result.jpg

Link to comment
Share on other sites

Hello, add this code in the file and try with command "dd2". It work with 3dpoly intersect but only if they are with the same elevation. With interpolation will be hard for me and if someone else want can change the code, will be better.

 

(defun c:dd2 ( / sset intt ssel2)
(setq sset (ssget (list (cons 0 "*POLYLINE"))))
(setq lst (LM:intersectionsinset sset))
(setq ssel2 (VaniVL sset "Try13"))
(vlax-for x ssel2
	(T:InVert x lst)
)
(princ)
)

 

Link to comment
Share on other sites

Thanks Trudy for your time and effort. But this lisp also not working properly.

 

2 3D polylines are intersect with each other without vertex, so become same elevation for both lines not possible.

 

Thanks

Link to comment
Share on other sites

@MOHITGAUR did you try the new uploaded lisp, from this post.

In the second post i modify some things and i think, it work.

"

Okay nvm, try this xD

 

Again with "dd2"

"

Edited by Trudy
Link to comment
Share on other sites

I fount the problem.

When you zoom to max you will se you have multiple intersect point for each line and for some very short distance you have around 6-7 int points. I will modify it tomorrow but dont think this is what you need.

  • Like 1
Link to comment
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
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...