Jump to content

lisp for Add vertex on intersecting 3d polyline with elevation


Recommended Posts

Posted

I need to add vertex in 3Dpolylines which intersect with another 3Dpoly with elevation. Please refer attached snap.

3Dpoly.jpg

Posted

Hello, can  you attach .dwg file.

  • Like 1
Posted

Thanks trudy, but when i try to do this lisp on 3dpolylines, its not work.

Can you please guide me?

 

Posted

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?

Posted

I may not understand what you need exactly, intersect in 3D or 2D intersect points.

Posted

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

Posted

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

 

Posted

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

Posted (edited)

@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
Posted

@Trudy yes i was try your lisp but unfortunately didn't get vertex.

Posted

Upload the file or part of the file for new tests, because with first file work fine :) 

 

Posted

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

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