aaryan Posted July 9, 2012 Posted July 9, 2012 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 Quote
MSasu Posted July 9, 2012 Posted July 9, 2012 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. Quote
aaryan Posted July 9, 2012 Author Posted July 9, 2012 Thank You Mircea One more doubt what if my vertical line is not touching the horizontal line. Is it still possible? Regards Quote
MSasu Posted July 9, 2012 Posted July 9, 2012 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. Quote
BIGAL Posted July 10, 2012 Posted July 10, 2012 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 Quote
MSasu Posted July 10, 2012 Posted July 10, 2012 To use on BIGAL's example, the available modes for intersection validation are: acExtendNone, acExtendBoth, acExtendThisEntity and acExtendOtherEntity. Quote
aaryan Posted July 10, 2012 Author Posted July 10, 2012 Thank You Both I've solved the problem using acExtendBoth. Thank You Once Again. Regards Aaryan Quote
Recommended Posts
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.