# draw a rectangle in a CAD programhow to draw a rectangle in a CAD program, using relative and absolute coordinates.

*print*Print*list*Cite

### 1 Answer

You just have to keep in mind that absolute coordinates are given with reference to a fixed point, usually the origin.

The relative coordinates tells how far the points is located away from another given point.

We'll draw a rectangle, whose length is 40 and width is 20.

We'll use absolute coordinates.

The rectangle is defined by 4 vertices.

We'll start from the 1st vertex and we'll move counter clockwise.

The coordinates of the 1st point are (10 ; 10).

The 2nd vertex coordinates: (50 ; 10)

The 3rd vertex coordinates: (50 ; 30)

The 4th vertex coordinates: (10 ; 30)

Now, we'll draw the rectangle using relative coordinates:

The coordinates of the 1st point are (10 ; 10).

The 2nd vertex coordinates: @40 , 0

The 3rd vertex coordinates: @ 0 , 20

The 4th vertex coordinates: @ -40 , 0

We'll close the rectangle with @ 0 , -20.