AutoLISP Osnap function (2016)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
After migrating to 2016 AutoCAD from 2014 some of my old AutoLISP functions failed. After hours of trial-and-error debugging I found the Osnap function entity identifiers have changed and some of the old ones (QUI specifically) cause the function to fail. As this function is usually deeply buried in low-level routines for user input (without error handling, my bad) it was especially hard to find.
I looked through the changes to commands and system variables but didn't see this one. The on-line Help for AutoLISP functions doesn't list the valid identifiers - the in-app Help does, if you keep checking the related references at the bottom. I don't even remember what QUI was for (Quit?) - quadrant is QUA. This function shouldn't Fail just because it doesn't like one of the arguments in the string!
Valid codes are: END, MID,CEN,GCE,NOD,QUA,INT,EXT,INS,PER,TAN,NEA,APP,PAR, and NON (for none).
Hope this helps someone.
Now I need to find out what the ._ command prefix does. Some code examples have it and others don't and I haven't found it's explanation. None of my calls have it and seem to work OK.