Jump to content

Create Lots of Rays


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...