Jump to content

Recommended Posts

Posted

Hi All,

I am Very much Thankful to all of You for helping me a lot and making me learn more from this Forum.

I need your help again. Please

I've attached a drawing for clarification.

In words i would like to know the intersection between two polylines one is Vertical with two vertices and the another one is horizontal which has many vertices. Is inters function suitable for this.

Please reply.

Intersection.dwg

Posted

You may try to validate the intersection using the built-in INTERS function and parsing the second polyline’s consecutive vertexes in pairs.

Or may check the functions shared by Lee Mac.

Posted

Thank You Mircea

 

One more doubt what if my vertical line is not touching the horizontal line. Is it still possible?

 

Regards

Posted

The validation of intersection can be made in extension mode. That it, one or both segments are extended to infinity and this way can obtain an intersection point that doesn't lay on any of the analyzed segments.

Posted

Check out the VL code intersectwith more advanced than lisp Inters you can do stuff like do they touch or extend till they touch.

 

example

(setq pickobj (entsel "\nPick arc :"))
(setq obj1 (vlax-ename->vla-object (car pickobj)))
(setq pt1 (cadr pickobj))  
(setvar "clayer" (cdr (assoc 8 (entget (car pickobj)))))
(setq pickobj1 (entsel "\nPick 1st line :"))
(setq obj2 (vlax-ename->vla-object (car pickobj1)))
(setq intpt1 (vlax-invoke obj2 'intersectWith obj1 acExtendThisEntity)) ;  acExtendThisEntity this can be changed for different test

Posted

To use on BIGAL's example, the available modes for intersection validation are: acExtendNone, acExtendBoth, acExtendThisEntity and acExtendOtherEntity.

Posted

Thank You Both I've solved the problem using acExtendBoth.

Thank You Once Again.

 

Regards

Aaryan

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