Jump to content

STRETCH COMMAND while mouse drags from left to right instead of right to left?


Recommended Posts

Posted

I s there an efficient way of stretching an object. Usually I drag my mouse from right to left, thereby selecting objects that my selection box just touches. I want to drag my mouse from left to right so that only the vertices which are inside my selection box get selected.

Posted

I think that you have an inherent problem. In order to stretch you need to specify the stretch base point which is defined by the vertices. If your selection window includes all of the vertices, you've got an issue.

Posted

If you are looking for a crossing window that works when stretching from left to right, then at the "select objects" prompt, type c (return) and the crossing window works whichever way the mouse is dragged :D

Posted
I s there an efficient way of stretching an object. Usually I drag my mouse from right to left, thereby selecting objects that my selection box just touches. I want to drag my mouse from left to right so that only the vertices which are inside my selection box get selected.
I've got a bit of a head scratcher here. If all the vertices are inside the selection box the stretch would effectively become a move command now wouldn't it?
Posted
I've got a bit of a head scratcher here. If all the vertices are inside the selection box the stretch would effectively become a move command now wouldn't it?

 

Yes, the Stretch command only works on those vertices inside the crossing selection box, so that those lines which only have one vertex inside the box are stretched, and those lines which have two vertices inside the box are moved.

 

Try it with a rectangle and see what happens :D

 

Normally a crossing selection box is only generated when the cursor is dragged from right to left, and the OP wanted it formed from left to right.

Posted

Isn't that how the Stretch command works now, or am I missing something?

 

stretchit.gif

Posted

Sorry, it's just that the bolded phrase threw me a bit. I'd also say as eldon's mentioned just type c to force a by-crossing selection from left-to-right. Or if you wanted a window-selection from right-to-left type w. But the last is what was throwing my head into a spin, couldn't for the life of me understand why you'd want to do that instead of using a move command instead.

Posted
Isn't that how the Stretch command works now, or am I missing something?

 

He wants the crossing selection to go from LEFT to RIGHT, default is RIGHT to LEFT as in your image. Default LEFT to RIGHT only selects objects entirely in the window.

Posted
He wants the crossing selection to go from LEFT to RIGHT, default is RIGHT to LEFT as in your image. Default LEFT to RIGHT only selects objects entirely in the window.

Wow, odd request. eldon's response of using "C" to force crossing is the only viable option - other than just using the software how it's coded.

Posted

I have the stretch command set like that for years. You can aim better that way, having the crosshairs on the screen, rather than just a pickbox, when you start the command.

 

(defun c:s () (command "stretch" "c") (princ))

Posted
I have the stretch command set like that for years. You can aim better that way, having the crosshairs on the screen, rather than just a pickbox, when you start the command.

 

(defun c:s () (command "stretch" "c") (princ))

 

I like having the option of having the crosshairs at the beginning of the command. I believe this will come in handy for me.

Posted
Wow, odd request. eldon's response of using "C" to force crossing is the only viable option - other than just using the software how it's coded.
Well, I suppose a drawing could be so busy as to cause a pick-object (i.e. the crossing selection doesn't start) when selecting from right - thus forcing you to have to try from the other side.

 

I have the stretch command set like that for years. You can aim better that way, having the crosshairs on the screen, rather than just a pickbox, when you start the command.

 

(defun c:s () (command "stretch" "c") (princ))

Good call! Why this isn't built-in is probably another of those for the 100 Paper Cuts thread on AUGI. I mean, why even allow selection by picking in the stretch command? Or at least why have it as the default? The stretch should always default to crossing selection - only in weird situations would you ever want to pick an object.

 

To me there's only 2 selection methods which makes sense in the Stretch command: Crossing & CPolygon. See the options in the select command: http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ffa23ce210c4a30acaf-4e27.htm,topicNumber=d0e358661

 

AFAICT the only time I'd pick a single object at a time would be to remove it from the selection, not to start off as the 1st batch of objects to stretch. And anyway, in such weird situations the user could always specify the Auto modifier to use the selection as it is at present.

 

I'd even go as far as to change your code into a command reactor, checking if the stretch command has started and then issuing the Crossing option. That way no matter how stretch is started (S, or STRETCH, or toolbar button, or menu, or ribbon, etc.) it will always start as a crossing selection. Or possibly undefine Stretch, the make a defun c:Stretch which calls ".STRETCH" to run the undefined command.

Posted

The more I think about it, it really doesn't make sense much sense for window selection for STRETCH. I retract my statement and agree that paulmcz's macro is the best option - other than when you want to use CP or something. I do use stretch sometimes to move an mleader that has lines drawn through the text and additional text beside it (proposed vs. existing), but even then I have to use crossing to only get the portion of the mleader and other objects to not move the leader point (the only thing I don't like about mleader).

Posted
Well, I suppose a drawing could be so busy as to cause a pick-object (i.e. the crossing selection doesn't start) when selecting from right - thus forcing you to have to try from the other side.

 

Good call! Why this isn't built-in is probably another of those for the 100 Paper Cuts thread on AUGI. I mean, why even allow selection by picking in the stretch command? Or at least why have it as the default? The stretch should always default to crossing selection - only in weird situations would you ever want to pick an object.

 

To me there's only 2 selection methods which makes sense in the Stretch command: Crossing & CPolygon. See the options in the select command: http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ffa23ce210c4a30acaf-4e27.htm,topicNumber=d0e358661

 

AFAICT the only time I'd pick a single object at a time would be to remove it from the selection, not to start off as the 1st batch of objects to stretch. And anyway, in such weird situations the user could always specify the Auto modifier to use the selection as it is at present.

 

I'd even go as far as to change your code into a command reactor, checking if the stretch command has started and then issuing the Crossing option. That way no matter how stretch is started (S, or STRETCH, or toolbar button, or menu, or ribbon, etc.) it will always start as a crossing selection. Or possibly undefine Stretch, the make a defun c:Stretch which calls ".STRETCH" to run the undefined command.

 

are there other options besides window, crossing, and cpolygon? where are these options listed?

Posted
are there other options besides window, crossing, and cpolygon? where are these options listed?

Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Add/Remove/Multiple/Previous/Undo/AUto/SIngle

Posted
Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Add/Remove/Multiple/Previous/Undo/AUto/SIngle

 

I'm trying not to spread my ignorance too bad...This is like a standard set of options for commands such as move and copy, when options don't actually pop up, like when you use fillet or circle?

 

I hit F1 for stretch/move and didn't see these options listed.

Posted
I'm trying not to spread my ignorance too bad...This is like a standard set of options for commands such as move and copy, when options don't actually pop up, like when you use fillet or circle?

 

I hit F1 for stretch/move and didn't see these options listed.

These options apply for anything that allows multiple object selection.

 

eg.

Command: s
STRETCH
Select objects to stretch by crossing-window or crossing-polygon...
Select objects: n


*Invalid selection*
Expects a point or 
Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Add/Remove/Multiple/Previou
s/Undo/AUto/SIngle

Posted

That's why I included the link to the AutoCAD help page of the Select command (painful that the link didn't work though). It's the only place where they list these options for you. Strange, but that's adesk's stupid help system for you! I'd have thought they'd at least have a clause like "For selection options see Select[link]".

 

Here's the link again, hopefully this one works: http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ffa23ce210c4a30acaf-53b7.htm,topicNumber=d0e308814

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