Johntosh Posted January 6, 2009 Share Posted January 6, 2009 In AutoCAD, by selecting a lwpolyline and then properties we can select a vertex number and it's corresponding coordinates, is it possible to extract this information using LISP? In other words, can I select the lwpolyline and use an arbitrary number to go straight to the required vertex or can I only increment through? I can get the first or the last point using vlax but can I go to vertex 6, for example? It would be easier if there were a vlax-curve-getpoint(6) Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 6, 2009 Share Posted January 6, 2009 I had this issue a while back, There are many ways to solve it - see here: http://www.cadtutor.net/forum/showthread.php?t=30800&highlight=polyline+vertex Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 6, 2009 Share Posted January 6, 2009 The supplied link shows a way to create a list containing all the polyline vertices. From the list you can select your vertex using "nth". Quote Link to comment Share on other sites More sharing options...
Johntosh Posted January 6, 2009 Author Share Posted January 6, 2009 Thanks Lee, ...plenty for me a go at there. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 6, 2009 Share Posted January 6, 2009 ASMI's method is a good one, (make sure (vl-load-com)), but as I prefer not to use VL, I like David's. 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.