Display full version of the post: Move objects in certain axis using command line

HaiderOfSweden
24.02.2017, 10:16
Hi!I am looking for a method to move or copy something from a given point (click) to e.g. 20,*,* where * is the previous value.Can this be done using command line, or lisp?I am thinking for something similar to the @-character,.

John Connor
24.02.2017, 11:51
Could you be referring to the "FROM" modifier?

Kent Cooper
24.02.2017, 18:00

If you mean you want to Move or Copy something(s) in the X-axis direction, and [by "previous value" you mean] keep the Y and Z coordinates of its/their original location(s), that's easy -- there are several ways to get there (see Help about these commands, in the area of describing Displacements): MOVE [or COPY]<select object(s)>Specify base point or [Displacement] <Displacement>: 20,0,0Specify second point or <use first point as displacement>: <Enter>or Specify base point or [Displacement] <Displacement>: <Enter>Specify displacement <prior displacement offered as default, if any>: 20,0,0or Specify base point or [Displacement] <Displacement>: <pick any point>Specify second point or <use first point as displacement>: @20,0,0or Pre-select object(s), pick on a grip and hit Enter/space to go into Move mode.  If you want to Copy instead, type C for the Copy option.  Then either type in @20,0,0 or with Ortho on, "aim" the cursor to the right and type in just 20. If by "previous value" you mean something different than that (the X and Y coordinates of some other previous location or operation?), come back with a more detailed description of just what you mean.

HaiderOfSweden
02.03.2017, 17:39
Thank you Kent,Your explanation helped me a lot! I knew there was an easy way :)With "previous value" I meant of course "previous location" or even better, "current location".I tried them all and I did some experiments on the @-thing. Can you confirm that the third example doesn't need any @ in it? Only the fourth example had to have a @, and without it, it did not work correctly.

Kent Cooper
02.03.2017, 19:04
[QUOTE=HaiderOfSweden]Thank you Kent,.... Can you confirm that the third example doesn't need any @ in it? ....[/QUOTE]
 You can confirm it easily enough with minimal experimentation, but yes, it's a "raw" displacement, which just needs X Y & Z values outright.  Since it's already been designated a displacement, it won't try to use it as a point location.