Jump to content

Key command trimming


Recommended Posts

Posted

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...

Posted

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?

Posted

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.

Posted
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.

Posted

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.

Posted

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.

Posted

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.

Posted
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+ .......

Posted (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 by RocketSurgeon
typo
Posted

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

Posted
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.

Posted
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

 

By adding a line, both tr and t would start the trim command, but tr would automatically select all.

Posted

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.

Posted

... Or invoke the T, and TR commands prior to loading your custom routine (to determine if needed). Just saying. :wink:

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...