samifox Posted March 3, 2013 Share Posted March 3, 2013 Hi So far, using Autolisp functions to interact with thec ommand line in Autocad made a perfect scene. What didn’t made scene is how to code "click" on the vector in order fot the function to work. For example the trim/extends command will trim or extend the line in the direction of the clicked point, how can I tell Autolisp to click in a specific location? Thanks Shay Quote Link to comment Share on other sites More sharing options...
MSasu Posted March 4, 2013 Share Posted March 4, 2013 You can provide the points to be picked, similar with what you will do on screen: (if (and (setq point1st (cadr (entsel))) (setq point2nd (cadr (entsel)))) (command "_EXTEND" point1st "" point2nd "") ) But, please, pay attention that the result may be influenced by the current zoom level and also by pickbox size. Quote Link to comment Share on other sites More sharing options...
samifox Posted March 4, 2013 Author Share Posted March 4, 2013 Hi dont tell me there is no way around? 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.