Thread Content
Use the Shift key to help trim or extend objects. The TRIM command and the EXTEND command are often used when we modify graphics, but have you noticed the prompts that appear in the command line while using these commands? ——“Select the object to be trimmed, hold down the Shift key to select the object to be extended, or:” ; “Select the object to extend, or hold down the Shift key to select the object to trim, or :”. It turns out that the Shift key helps us switch between two commands quickly, which is extremely convenient when we need to frequently alternate between trimming and extending objects.
Hehe, I mentioned that in a post I made before
^_^I only found out because I saw someone else use it; now it looks ugly
I’ll also show off my clumsiness a bit – regarding TRIM and EXTEND, you can give these a try to see what happens! (defun c:T () (COMMAND "_.TRIM" "")) (defun c:EX () (COMMAND "_.EXTEND" ""))
If I’m not mistaken, the purpose of this Lisp statement is: 1. To simplify the “TRIM” command to the “T” command; 2. Simplify the “EXTEND” command to the “EX” command.
In my opinion, simplifying commands is just one aspect; there’s also a \"\" at the end, which functions like a space or a right-click mouse button – it allows you to not select an object first, which is very convenient
What was said on floor 7 is correct; that’s exactly what it means – it allows for the elimination of some unnecessary steps. The purpose of LSP is to simplify drawing/procedures to make them easier to use!
Oh, really? I hadn’t noticed that before
I’ve seen it, but it’s not used very often. Usually, it’s faster to just use the shortcut
The simplified command for trimming is simply “tr”, while that for extending is “ex”. Using Lisp in this way doesn’t take advantage of its strengths at all; it’s better to directly modify acad.pgp, which adds an add-in to CAD – it really isn’t meaningful.
I’ve learned something new; I’ll study it carefully. I’ll go and practice using CAD right now. Thank you all:handshake