Volk Posted January 6, 2018 Share Posted January 6, 2018 Hello, I am using AutoCAD 2015. I am dummie in LISP. I need to creat a lot of rays. And I decided to optimize this process. BUT! When I use simple procedure right in command string: Command: (command "RAY" "500,100" "400,500" "") RAY Specify start point: 500,100 Specify through point: 400,500 Specify through point: Command: nil AutoCAD drew ray with different coordinates: I don't understand: WTF?! Quote Link to comment Share on other sites More sharing options...
SLW210 Posted January 8, 2018 Share Posted January 8, 2018 Please do not add unrelated posts to threads. I have created you a new thread Create Lots of Rays in the AutoCAD 2D Drafting, Object Properties & Interface Forum. You probably don't need a LISP for this. Quote Link to comment Share on other sites More sharing options...
steven-g Posted January 8, 2018 Share Posted January 8, 2018 I don't know lisp, but does your drawing contain other geometry close to those points, I know from working with scripts in LT that Autocad will still 'snap' to objects depending on zoom levels and you need to make allowances for that using the "non" command modifier before each coordinate, try your code in an empty drawing to see how that works. Quote Link to comment Share on other sites More sharing options...
lrm Posted January 8, 2018 Share Posted January 8, 2018 The command: (command "RAY" "500,100" "400,500" "") works for me. Make sure you do not have OSNAP on and that it's screwing things up! You can do it in vlisp with: (setvar "osmode" 0) Quote Link to comment Share on other sites More sharing options...
Volk Posted January 8, 2018 Author Share Posted January 8, 2018 The command:(command "RAY" "500,100" "400,500" "") works for me. Make sure you do not have OSNAP on and that it's screwing things up! You can do it in vlisp with: (setvar "osmode" 0) Yes, It works in a new file. I will add setvar in the command. After that I will report my result. Thx a lot! 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.