autodesk forge – Using AutoLISP to create objects snaps to nearby objects instead of using specified coordinates
Steps to duplicate:
-
Open a new drawing in AutoCAD
-
Turn on Object Snaps End Point mode (and turn off mid point mode)
-
Paste the following on the command prompt
(progn
(command "_line" (list 0 0 0) (list 500 500 500) "")
(command "_.-VIEW" "_swiso")
(command "_circle" (list 250 250 250) 50)
(command "_LIST" (ssget "_L") "")
)
Observe that the circle gets created at the end point of the line, rather than at it’s specified location (250, 250, 250) .
Besides turning off OSNAPs in my AutoLISP is there another way around this?
Read more here: Source link
