Costinbos77 Posted April 26, 2013 Posted April 26, 2013 (edited) Hello! I have a request from those who have 1 minutes free and will give a helping hand . Press up to down, only the buttons on the 'OBJECT SNAP' toolbar ! Because it get different values in different sessions of Autocad. 1 . run routine attached: (defun C:zzz (/ cd gr vt) ; 26 . 04 . 2013 . (princ "\n C:zzz : START : V : 26 . 04 . 2013 ;\n AutoCAD Version : ") (princ (getvar "acadver")) (princ "\n Select a Button of 'OBJECT SNAP' Toolbar : < Pick > ; Enter = STOP : ") (while (and (not (member (setq gr (grread T 15 0) vt (cadr gr) cd (car gr)) '(3 25)) ) (not (member vt '(13 32)) ) ) (if (/= cd 5) (progn (princ "\n ") (princ gr) (princ " ;") ) ) ) ;_ end of wh (princ "\n C:zzz : END ;") (princ) ) ;_ end of defun 2 . and post the results: C:zzz : START : V : 26 . 04 . 2013 ; AutoCAD Version : 18.2s (LMS Tech) Select a Button of 'OBJECT SNAP' Toolbar : < Pick > ; Enter = STOP : (11 1471) ; (11 1472) ; (11 1474) ; EndPoint (11 1475) ; MidPoint (11 1476) ; (11 1477) ; (11 1478) ; Center (11 1480) ; (11 1481) ; (11 1482) ; (11 1484) ; (11 1485) ; (11 1486) ; (11 1487) ; (11 1489) ; (11 1490) ; (11 1492) ; Osnap C:zzz : END ; Thank you very much for your time! Edited April 26, 2013 by Costinbos77 Quote
dbroada Posted April 26, 2013 Posted April 26, 2013 not sure if it will help you or not but here is a list from clicking each button in turn. I never use the toolbar (prefer shift right click) so can't say what each does. This is from 2013. C:zzz : START : V : 26 . 04 . 2013 ; AutoCAD Version : 19.0s (LMS Tech) Select a Button of 'OBJECT SNAP' Toolbar : < Pick > ; Enter = STOP : (11 1342) ; (11 1343) ; (11 1345) ; (11 1346) ; (11 1347) ; (11 1348) ; (11 1349) ; (11 1351) ; (11 1352) ; (11 1353) ; (11 1355) ; (11 1356) ; (11 1357) ; (11 1358) ; (11 1360) ; (11 1361) ; (11 1363) ; C:zzz : END ; Quote
Costinbos77 Posted April 26, 2013 Author Posted April 26, 2013 (edited) Thanks a lot for your answer dbroada. If I compare my values with yours, it is clear that Autocad assign different codes for the same toollbar . .... so can't say what each does. .... This attempt to determine, what OSNAP was used. Does anyone know how Autocad manage these codes of buttons ? Edited April 26, 2013 by Costinbos77 Quote
neophoible Posted April 26, 2013 Posted April 26, 2013 OK, here're my results: C:zzz : START : V : 26 . 04 . 2013 ; AutoCAD Version : 18.2s (LMS Tech) Select a Button of 'OBJECT SNAP' Toolbar : < Pick > ; Enter = STOP : (11 1758) ; (11 1759) ; (11 1761) ; (11 1762) ; (11 1763) ; (11 1764) ; (11 1765) ; (11 1767) ; (11 1768) ; (11 1769) ; (11 1771) ; (11 1772) ; (11 1774) ; (11 1776) ; (11 1777) ; (11 1779) ; C:zzz : END ; I don't know or don't recall anything about how AutoCAD handles these. I'm just glad you didn't need help "to solve Genealogy problem" using Prolog! It is interesting to see that the skipped numbers occur at the separation bars. One might think the numbers refer to line numbers in a menu file, or some similar relation. Quote
Costinbos77 Posted April 26, 2013 Author Posted April 26, 2013 (edited) Thanks for the reply. ... I'm just glad you didn't need help "to solve Genealogy problem" using Prolog! ... Although I had not read the subject 'genealogy', but you made me curious and I checked what it is about. Each with his problem. ... It is interesting to see that the skipped numbers occur at the separation bars. One might think the numbers refer to line numbers in a menu file, or some similar relation. But in another Autocad session, I obtained other values. C:zzz : START : V : 26 . 04 . 2013 ; AutoCAD Version : 18.2s (LMS Tech) Select a Button of 'OBJECT SNAP' Toolbar : < Pick > ; Enter = STOP : (11 1362) ; (11 1363) ; (11 1365) ; EndPoint (11 1366) ; (11 1367) ; (11 1368) ; (11 1369) ; (11 1371) ; (11 1372) ; (11 1373) ; (11 1375) ; (11 1376) ; (11 1377) ; (11 1378) ; (11 1380) ; (11 1381) ; (11 1383) ; C:zzz : END ; Edited April 27, 2013 by Costinbos77 Quote
neophoible Posted April 29, 2013 Posted April 29, 2013 Well, I tried choosing a different workspace. The first WS change did not affect it; but it did indeed change the numbers when it had to "redo" the menus. And when I Undid the operation back to my original WS, it renumbered them yet again, but not quite back to the previous numbers. So, if these are menu lines, they are not fixed. The numbers ran 1758 thru 1779 as before; changed WS, but no numbering change; changed WS again and numbering started at 1761; then finally, after the Undo, it numbered 1752 & up. Quote
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.