nnutting Posted November 17, 2011 Posted November 17, 2011 I would like to be able to just type 't' or 'tr' and not have to pick the objects before picking the object to trim. Right now I just hit return twice...but it would be nice if I could eliminate one step. Same thing for extending a line... Quote
CyberAngel Posted November 17, 2011 Posted November 17, 2011 Not quite understanding the question. If you didn't pick the trimming objects, how would AutoCAD know where to trim the trimmed objects? And if you didn't pick the trimmed objects, how would AutoCAD know what to trim? Quote
nnutting Posted November 17, 2011 Author Posted November 17, 2011 Currently when I type 'tr' the command prompt says: Select objects or I can then select the trimming objects and press enter...then select the items I want to trim. I would like to eliminate the first step and just have AutoCAD automatically select all. Quote
Jack_O'neill Posted November 17, 2011 Posted November 17, 2011 Currently when I type 'tr' the command prompt says: Select objects or I can then select the trimming objects and press enter...then select the items I want to trim. I would like to eliminate the first step and just have AutoCAD automatically select all. Yes, you can do that. When you get to the "select objects" prompt, just hit enter again and all objects in the drawing will be selected. Then pick what you want to trim. Quote
nnutting Posted November 17, 2011 Author Posted November 17, 2011 Thanks Jack...but I want to by pass pressing enter again...I know it's a small thing...but I had it like this at my previous employer and that's what I was used to doing for the past 6 years. Quote
Jack_O'neill Posted November 17, 2011 Posted November 17, 2011 The only way I know of to do that would be to get one of the LISP gurus to write a bit of code and redefine the command. I'm no programmer, but I don't think that would be difficult. Quote
rkent Posted November 17, 2011 Posted November 17, 2011 The code can be pretty simple (defun c:tr(/)(command "trim" "")) Place that in your acaddoc.lsp file or any lisp file that loads each time. Quote
BlackBox Posted November 18, 2011 Posted November 18, 2011 The code can be pretty simple (defun c:tr(/)(command "trim" "")) Place that in your acaddoc.lsp file or any lisp file that loads each time. 1+ ....... Quote
RocketSurgeon Posted November 19, 2011 Posted November 19, 2011 (edited) when doing this, does it allow you to use the command normally too? It seems this would bypass the option of going back and only being able to choose one item, is this thinking correct? Or, if you still type the complete command, "trim", you would get the normal option available? Edited November 19, 2011 by RocketSurgeon typo Quote
danellis Posted November 19, 2011 Posted November 19, 2011 using your new TR command, you'd only be able to use the "one click" version, but typing TRIM in full would give you the traditional form of the command. dJE Quote
RocketSurgeon Posted November 19, 2011 Posted November 19, 2011 using your new TR command, you'd only be able to use the "one click" version, but typing TRIM in full would give you the traditional form of the command. dJE thanks. i may look into trying this too. Quote
Jack_O'neill Posted November 19, 2011 Posted November 19, 2011 when doing this, does it allow you to use the command normally too? It seems this would bypass the option of going back and only being able to choose one item, is this thinking correct?Or, if you still type the complete command, "trim", you would get the normal option available? What the code Rkent posted does is start the trim command and then does an "enter", just as if you done it manually. When you get to this point manually "Select objects or " whatever is in the brackets (in any command, not just trim) is the default option. An "enter" at this point accepts the default. Personally I don't see what the big deal is with hitting the enter key here is, but to each his own. If you want it both ways, add a line to the code so that something other than "tr" starts the trim command. Then you could use "t" for instance, then leave off the quotation marks at the end. By adding a line, both tr and t would start the trim command, but tr would automatically select all. Quote
Jack_O'neill Posted November 19, 2011 Posted November 19, 2011 Just be sure that 't' and 'tr' aren't used somewhere else for some other command. Dig around in your acad.pgp file and rename any there that use these aliases to something else. Quote
BlackBox Posted November 21, 2011 Posted November 21, 2011 ... Or invoke the T, and TR commands prior to loading your custom routine (to determine if needed). Just saying. :wink: 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.