- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all.
A few days ago I opened the topic
Macro: Modifying an ".X" Filter not Successful
the problem was successfully solved, thanks to Sebastian.
I was hoping that I will be able to make on my own a few more macros to speed up the workflow, but it turned out that it is not that easy...
Target:
Move object(s) in the selected direction of one axe - take the desired coordinate from the next selected point.
Semi-solution:
I tried an easy approach mixing "move", "@", "/", ";" but had no success. I tried to combine parts of codes from different sources. Close, but not a solution.
In the end, the only one that did the job was (for me) a rather complicated one:
move;\;(setq p1 (getpoint)) \(list (car (getpoint)) (cadr p1) (caddr p1))
(took the main part of code from here (setq p1 (getpoint "\nPick the point on the screen for the first corner:") ) )
Problem:
I can move one by one object, and the object can't be preselected. I have to start the command, select the (only one) object, select the base point, and then select the point-donor of desired (X or Y or Z) coordinate.
I tried to adopt the code to be able to pre-select multiple, but had no success.
Is there a way (of course there is - it's just a matter of knowledge) to move the (pre)selected objects in only one direction, to the that specific (X or Y or Z) coordinate taken from the specific point?
Thanks in advance,
N
P.s. - I made a "copy" version of the mentioned macro, and tried to make a variants for .xy, .xz, .yz commands. Hopefully, the possible solution will be clear enough that I will be able to make these variants by myself.
Solved! Go to Solution.