CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 7135
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedMove objects in certain axis using command line

 Post Reply Post Reply
Author
HaiderOfSweden View Drop Down
Newbie
Newbie


Joined: 18.Oct.2011
Location: Sweden
Using: Revit, AutoCAD, 3dsMax, Rhino
Status: Offline
Points: 12
Direct Link To This Post Topic: Move objects in certain axis using command line
    Posted: 24.Feb.2017 at 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,.
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 24.Feb.2017 at 11:51
Could you be referring to the "FROM" modifier?
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 628
Direct Link To This Post Posted: 24.Feb.2017 at 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,0
Specify 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,0
or
 
Specify base point or [Displacement] <Displacement>: <pick any point>
Specify second point or <use first point as displacement>: @20,0,0
or
 
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.
Back to Top
HaiderOfSweden View Drop Down
Newbie
Newbie


Joined: 18.Oct.2011
Location: Sweden
Using: Revit, AutoCAD, 3dsMax, Rhino
Status: Offline
Points: 12
Direct Link To This Post Posted: 02.Mar.2017 at 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.
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 628
Direct Link To This Post Posted: 02.Mar.2017 at 19:04
Originally posted by HaiderOfSweden HaiderOfSweden wrote:

Thank you Kent,
.... Can you confirm that the third example doesn't need any @ in it? ....
 
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.
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,531 seconds.