.XY ortho stretch snap

.XY ortho stretch snap

Code_x
Advocate Advocate
991 Views
9 Replies
Message 1 of 10

.XY ortho stretch snap

Code_x
Advocate
Advocate

Hello, 

I am trying to stretch objects in locked/ortho direction with stretch command. I know that snap tracking gives you reference point to where you can stretch but it is very slow. I would like to use grip when I stretch my geometry and snap to the adjacent objects without distorting my original shape. It should follow only X or Y direction. Is it possible to do it in Macro? Can someone help? 

i saw a similar discussion but I can’t get any response.  Please see the link below to the video from the discussion and please help out if you know how to customize that. Stretch and grip to the adjacent objects without distorting original geometry : 


https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lock-direction-of-move-strech-comman...

 

0 Likes
Accepted solutions (2)
992 Views
9 Replies
Replies (9)
Message 2 of 10

ВeekeeCZ
Consultant
Consultant
Accepted solution

move in y dir: 

.x;non;@

 

move in x dir:

.y;non;@

 

Video of Y-direction version HERE . How to create HERE

A macro could be assigned to a keyboard shortcut. As Ctrl+Alt+E used in video.

 

//just for the record//

Message 3 of 10

SEANT61
Advisor
Advisor
Accepted solution

@ВeekeeCZ wrote:

move in y dir: 

.x;non;@

 

move in x dir:

.y;non;@

 

Video of Y-direction version HERE . How to create HERE

A macro could be assigned to a keyboard shortcut. As Ctrl+Alt+E used in video.

 

//just for the record//

 


Ah, very nice.  I'm not much of a keyboard guy - I prefer my non mouse hand be holding a cup of coffee - but that info on keyboard shortcuts is enlightening.

One note:  if movement were to be restricted in the "Y" direction only then the "Z" coordinate needs to be filtered as well, i.e. :

.xz;non;@;


************************************************************
May your cursor always snap to the location intended.
Message 4 of 10

Code_x
Advocate
Advocate

Hi, is it possible to do the same thing but on angle? Sometimes some objects need to be stretched at a certain angle. 

0 Likes
Message 5 of 10

Sea-Haven
Mentor
Mentor

Try UCS OB pick object, stretch object then UCS W.

0 Likes
Message 6 of 10

Code_x
Advocate
Advocate
Will this method affect coordination system for this project file? Some files have coordinate points labeled on the plans. I was hoping there was an easier solution..
0 Likes
Message 7 of 10

Sea-Haven
Mentor
Mentor

If you have a UCS already set then you will need to do UCS S dummyucs UCS OB stretch UCS R dummyucs. If we go into lisp can get current ucs name.

0 Likes
Message 8 of 10

ВeekeeCZ
Consultant
Consultant

@Code_x wrote:
Will this method affect coordination system for this project file? Some files have coordinate points labeled on the plans. I was hoping there was an easier solution..

 

You cannot be serious. You need to learn how to work with UCS efficiently. Flipping between USC/WCS in no time.

0 Likes
Message 9 of 10

Code_x
Advocate
Advocate

Hi, I was looking for a similar macro to perform the same function but on angle, is that possible?  I started a new discussion, if you can help with this, that would great! Thanks again. 

 

Strech dimensions, objects at a specified angle. - Autodesk Community - AutoCAD

0 Likes
Message 10 of 10

Code_x
Advocate
Advocate
This macro works so great. I love it!
I posted a new forum, trying to figure out how to achieve this method, to stretch objects at a locked angle? Is there a way to do that?

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/strech-dimensions-objects-at-a-speci...
0 Likes