Coordinates in AutoCAD (2D)

Hi Everyone,

When we start learning AutoCAD, first thing we need to understand is coordinate system.

To understand this first we need to understand what coordinates are?
"Coordinates are distances or angles, represented by numbers, that uniquely identify points on surfaces of two dimensions (2D) or in space of three dimensions 3D."
Types of coordinates in AutoCAD :
  • Absolute coordinates, measured from the UCS origin (0,0)
  • Relative coordinates, measured from the last point entered.
As we know AutoCAD has two modes one is 2D and another is 3D. We shall discuss about 2D coordinates in this post and 3D in next post.

In AutoCAD 2D we use two type of coordinate systems.

  • Cartesian Coordinates
  • Polar Coordinates
Cartesian Coordinates:
These are also called rectangular coordinates, have two (X,Y) or three straight-line axis that define the position of the points.

Syntax :
distance along X-axis, distance along Y-axis
The example below draws a line beginning at an X value of -1,a Y value of 1 and an end point at 7,4:


Command: line
Specify first point: -1,1
Specify next point or [Undo]: 7,4

The line is located as shown in the image on the right :

Polar Coordinates :
These coordinates are defined the location on a 2D plane in form of distance and angular displacement form the origin separated by an angle bracket (<). Angles, by default increases in the counter clockwise direction. (this can be changed with units command). The picture on the right shows the default angle orientations in AutoCAD.

Syntax :
Relative Coordinates  : @distance<angle    (Use "#" instead of "@" for absolute coordinates)



The example below draws a line beginning at 0,0, to a distance of 5 and angle 45 degrees and next line from this point at a distance of 5 and angle 30.



 


Command: line
Specify first point: #5<45
Specify next point or [Undo]:   @5<30
Specify first point:




So Guys, this was all about 2D coordinates in AutoCAD. I hope I was clear in writing and the post is helpful. In later posts we shall discuss about 3D coordinates.


Thanking You,

- Abhay Chauhan

PS : Don't forget to comment and share the post with your friends.

Easiest Way to Import Points into AutoCAD from Excel

There are several way to draw points in AutoCAD from a list of coordinates in excel spreadsheet.
  • Through AutoLISP/ Visual Basic or .NET
  • Through Scripts
Through AutoLISP/ Visual Basic or .NET

AutoLisp, Visual Basic & .NET are programming language not everyone knows them. Also, these will not work with AutoCAD LT versions.

Through Scripts

This one is easier and is available across all AutoCAD versions. But, it is difficult to read an excel spreadsheet with script files.

Easiest Method

Click here to download the excel spreadsheet & read the instructions.

I found this the easiest method. No programming know-how required.
Just have to type your coordinates in the sheet and copy the commands. Goto AutoCAD set a point style of your choice and paste the copied command on your command line.
Your points will be drawn on the AutoCAD screen.

Hope you find the trick useful.

- Abhay Chauhan

PS : Don't forget to comment and share the post with your friends. 

AutoCAD System Variables

AutoCAD is a big program, I would say its a big collection of programs. Still, AutoCAD is highly customizable. Everybody uses it differently. Users customize the look of screen, menu, command line and so on. In our drawings also we use different settings, like text height,width & color, dimension styles, layers etc.
How AutoCAD manages it. AutoCAD has provided us a tool called System Variables.

This is what Autodesk help says about System Variables.
AutoCAD stores the values for its operating environment and some of its commands in system variables.
In general system variables are commands that control the overall behaviour of AutoCAD and its commands.  Most of the system variables are changable(some are not, they are called read-only).

How to get a list of system variable?

Use SETVAR Command.
Command : setvar
Enter variable name or [?] : ?
Enter variable(s) to list <*> : *
Read The ADDVARS2SCR Command post to export a list of system variable in a text file with *.scr extension.

System variables are stored either in registry or in your drawing. The vaiables stored in registry will effect all your drawings and variables stored in your drawing will have effect on your drawings only.

How to know where a system variable is stored?

You can use SYSVDLG command of AutoCAD Express tools. It will open up a dialog box showing all the system variables available. Here in "Saved in :" field you can get the location where the variable is saved.



If you click on "Save All" you will get an option to save the variables either in .svf or .scr file. This will give you a backup of your system variable settings. You can change the settings and then import the settings into AutoCAD.

If you have earlier taken a backup with this method in a .scr file you can restore or import your settings with SCRIPT command. click here to read more on Scripts.

If you take your back in a .svf file, you can still change your settings by editting the file with notepad. To import your settings simply run SYSVDLG command and click on "Read", select your .svf  file press "Open" and you are done.

That's all for now friends. Hope, you liked the information.
Your comments and feedbacks are expected.

Thanking You,

PS : Don't forget to comment and share the post with your friends.

The PASTEORIG Command

During our drafting work, we do a lot of copy & pasting from one drawing to another. sometimes we need to past some objects into our current drawing on the original coordinates on which it was drawn in the source drawing.

PASTEORIG
Using this command, objects copied into the clipboard will be pasted into the drawing at the same coordinates used in the source drawing. The only condition is, the source drawing should not be the current drawing.

In your source drawing select & copy your objects with ctrl+c go to your target drawing and on command line type PASTEORIG. Press enter & you are done.

Thanking You,

- Abhay Chauhan

PS : Don't forget to comment and share the post with your friends.

Redesign

Hi Everyone,

I am in the process of doing an overhaul of the blog design. Things may look little messy for a few days.

Please be patient and cooperate.

Keep coming back everyday to see the progress.

Thanking You,

- Abhay Chauhan

PS : Don't forget to comment and share the post with your friends.