Jozi68 Posted September 21, 2009 Posted September 21, 2009 I have a polyline in a variable called myPL. I have a line in a variable called myLine. How do I get all points where they intersect? I'm woking in 2D. Quote
ronjonp Posted September 21, 2009 Posted September 21, 2009 try this: (vlax-invoke myPL 'intersectwith myLine acExtendNone) Quote
Lee Mac Posted September 21, 2009 Posted September 21, 2009 As an extension of Ron's excellent post: (vlax-list->3D-point (vlax-invoke myPL 'IntersectWith myLine acExtendNone)) (defun vlax-list->3D-point (lst) (if lst (cons (list (car lst) (cadr lst) (caddr lst)) (vlax-list->3D-point (cdddr lst))))) Quote
Jozi68 Posted September 22, 2009 Author Posted September 22, 2009 Sorry guys, this is all greek to me. I forgot to mention; I'm using Dot net. Can you perhaps translate any of this? Quote
Lee Mac Posted September 22, 2009 Posted September 22, 2009 Sorry guys, this is all greek to me. I forgot to mention; I'm using Dot net. Can you perhaps translate any of this? Jozi, I'm afraid there are only a few guys on this forum that know .NET - if you don't get a good response here - try over at theSwamp.org, they have a forum dedicated to .NET programming - you'll feel right at home Lee 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.