Jump to content

Recommended Posts

Volk

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:

attachment.php?attachmentid=62946&cid=1&stc=1

I don't understand: WTF?!

2018-01-06_04-03-43.png

Share this post


Link to post
Share on other sites
steven-g

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.

Share this post


Link to post
Share on other sites
lrm

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)

Share this post


Link to post
Share on other sites
Volk
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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×