need lisp for finding 3d polyline crossing

need lisp for finding 3d polyline crossing

Anonymous
Not applicable
560 Views
2 Replies
Message 1 of 3

need lisp for finding 3d polyline crossing

Anonymous
Not applicable

Hi

 

Could you please some one help me to get lisp for find crossing 3d polylines, for my vector data.

 

Thanks

ganesh

0 Likes
561 Views
2 Replies
Replies (2)
Message 2 of 3

devitg
Advisor
Advisor

upload a sample dwg , 2007 or less

0 Likes
Message 3 of 3

stevor
Collaborator
Collaborator

You could use the 'vLa-intersectwith'  function:

 

(setq ivl ( vLa-intersectwith
    (vLax-ename->vLa-Object en1 )
    (vLax-ename->vLa-Object en2 )
    acextendnone ) ) ; vlax data of Int Pts
(setq irl (vLax-safearray->List ; 'safearray'
   (vLax-variant-vaLue ivl )) ) ; to flat list
(repeat (/ (Length irl) 3) ; fLat pt List to 3D pt L
   (setq p3 (List (car iRl) (cadr iRl) (caddr iRl) )
            vpL (cons p3 vpL) iRl (cdddr iRl) ) ) ; 3D coords

S
0 Likes