lock direction of move/strech commands sketchup-like

lock direction of move/strech commands sketchup-like

polverini.1054591
Participant Participant
1,487 Views
5 Replies
Message 1 of 6

lock direction of move/strech commands sketchup-like

polverini.1054591
Participant
Participant

Hi, I was wondering if anyone is able to build a LISP for autocad to replicate the behaviour move/stretch commands as they work in SKETCHUP: basically I need to lock the direction (along the axis would be fine) during a move/stretch command so I can click directly on a snap point to set the distance for it.
To put things clearer, I'd need to replicate the behaviour shown in this video: 

https://knowledge.autodesk.com/search-result/caas/screencast/Main/Details/9b2da834-3f1b-4beb-a889-9d...
I already ruled out any out of the box solutions: autocad simply doesn't seem to work this way https://forums.autodesk.com/t5/autocad-forum/move-stretch-on-locked-direction/td-p/8983684
Can anyone help me?

0 Likes
Accepted solutions (1)
1,488 Views
5 Replies
Replies (5)
Message 2 of 6

SEANT61
Advisor
Advisor
Accepted solution
Whilst waiting for more automated options, and/or as a viable process for AutoCAD LT users, the Point Filters (Coordinate Filters) can be setup as Command Macros.  This can add a level of user friendliness not necessarily available to Point Filters right out of the box.  See this post as well:
 
 

 


************************************************************
May your cursor always snap to the location intended.
0 Likes
Message 3 of 6

SEANT61
Advisor
Advisor

Wayward Screencast.

 


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

john.uhden
Mentor
Mentor

I probably could using (grread).

John F. Uhden

0 Likes
Message 5 of 6

polverini.1054591
Participant
Participant

Hi, thanks for your input, that's exactly what I was looking for and I believe would be a huge time saver for many people. One quick question though, since I'm pretty new at using macros. This is what I did: I created a new command named "Only X" and inserted the macro you provided in your link, inside the macro field. Once I did that I copied that command in the right-click context menu, so I could use it like you do in your video. Now my only doubt is: how can I recall that command I just created by keyboard input? I can't seem to find a way to bind my custom command with any console input, neither modifying my pgp file. Can you help me with that?

0 Likes
Message 6 of 6

SEANT61
Advisor
Advisor

A drawback to Command Macros is the restriction on how it is called.  As far as I can tell, AutoCAD does not provide a direct method of assigning a Command Macro to a keyboard input.  It can be done indirectly by encapsulating the functionality in a Lisp routine - which, I believe, can be called transparently via keyboard input.  Hopefully, members of this board can help in that regard.


************************************************************
May your cursor always snap to the location intended.
0 Likes