Scottie Fox Posted December 19, 2019 Share Posted December 19, 2019 Greetings, everyone. I've been using AutoCAD on and off for the last couple of years but unfortunately I seem to have missed out on learning what appears to be basic / common knowledge amongst the community. When I try searching for solutions to my issues they are always written in ways which seem to assume the reader already understands how to get to a certain point, or is familiar with customising AutoCAD. I've always used AutoCAD (currently 2018) on computers which have been setup by someone else to use their own LISP and PGP files with custom settings, etc. I've tried to find articles which explain the basics (such as what LISP and PGP files actually do and how they work), but it seems a lot harder than it should be to find anything. Currently my biggest issue is understanding how to create my own keyboard shortcuts, especially for Object Snaps. The LISP file I'm using already has some custom shortcuts set up, as per below: ;;;OBJECT SNAP SETTINGS: (defun c:oem () (setvar "osmode" 3) ;;OSNAP ENDPOINT AND MIDPOINT ) (defun c:oo () (setvar "osmode" 14) ;;OSNAP ENDPOINT AND MIDPOINT AND CENTER ) (defun c:oep () ;;OSNAP ENDPOINT AND PERPENDICULAR (setvar "osmode" 129) ) (defun c:oei () ;;OSNAP ENDPOINT AND INTERSECTION (setvar "osmode" 33) ) (defun c:oen () ;;OSNAP ENDPOINT AND NEAREST (setvar "osmode" 513) ) (defun c:oenn () ;;OSNAP ENDPOINT AND NODE (setvar "osmode" 9) ) (defun c:ocm () ;;OSNAP CENTRE AND MIDPOINT (setvar "osmode" 6) ) (defun c:omn () ;;OSNAP MIDPOINT AND NODE (setvar "osmode" 10) ) I've tried adding to and editing these to create my own shortcut but it doesn't work. Basically I want to create a keyboard shortcut (Command: OO) which turns on the following Object Snaps: Endpoint Midpoint Centre (Center) Node Intersection Perpendicular Apparent Intersection Parallel I know most people don't like to work with so many turned on at the same time but this just works for me. It's especially frustrating as whenever I use the Leader or MText command it automatically switches all Object Snaps off and turns on the Nearest Snap only. I have no idea how to change this so that it doesn't alter my Object Snaps, so every time I use either the Leader or MText command I have to manually turn off the Nearest Snap then turn all 8 of my regular Snaps back on. I've tried searching for ways to set default Object Snaps but haven't come across anything. I did find an article which mentioned each Snap having its own value and needing to create a command which equals the total value, but this didn't make any sense to me. I apologise if I seem stupid or ignorant, but I have literally spent weeks looking for solutions and it's just getting so frustrating. I've even tried watching Lynda videos but they don't seem to cover these types of things. Any help would be greatly appreciated, as the guy who was like a Mentor to me and essentially got me started just seems to get frustrated when I ask how to do what are probably simple things (he's an insanely good Facade Engineer with more years AutoCAD experience than I have in life) Thanks again, Scottie. acad.pgp ben2017.lsp Quote Link to comment Share on other sites More sharing options...
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.