Jozi68 Posted September 21, 2009 Share 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 Link to comment Share on other sites More sharing options...
ronjonp Posted September 21, 2009 Share Posted September 21, 2009 try this: (vlax-invoke myPL 'intersectwith myLine acExtendNone) Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 21, 2009 Share 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 Link to comment Share on other sites More sharing options...
Jozi68 Posted September 22, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Lee Mac Posted September 22, 2009 Share 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 Link to comment Share on other sites More sharing options...
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.