2.2.5 - Draw a Rectangle
You will draw a rectangle with dimensions 1.4 by 0.7 (in meters), as shown in Fig.2.2.5.2.
There are three methods to draw a rectangle:
Specifying the two diagonal corners of the rectangle (P1 and P3):
- On Ribbon, click Home tab ► Draw panel ► click Rectangles (Fig.2.2.5.1).
- Specify on the screen the first point of the rectangle.
- To do this, pick a point on the screen near to point P1, as shown in Fig.2.2.5.3, or for more accuracy type on the Command prompt: 2, 2 to insert the coordinates of the first point P1, and define the first point of the rectangle.
- Specify the opposite corner of the rectangle ,
- to do this pick a point on the screen near to point P3, or for more accuracy, on the Command prompt: Specify opposite corner or: type 3.4,2.7, where 3.4 and 2.7 are the coordinates of the point P3 (3.4=2+1.4, 2.7=2+0.7).
Using the width and the height of the rectangle:
- You will draw a rectangle with dimensions 1.4 x 0.7 (meters), as shown in Fig.2.2.5.2. To do this:
- Specify on the screen the first point of the rectangle.
- To do this pick a point on the screen near to point P1, as shown in fig.1.2.20, or for more accuracy type on the Command prompt: 2,2 to insert the coordinates of the first point P1, and define the first point of the rectangle.
- At the Command prompt: Specify the opposite corner of the rectangle , type the letter D (which means Dimensions)
- on the Command prompt: Specify length for rectangles: type 1.40, where 1.40, is the Length of the rectangle, and press ENTER.
- on the Command prompt: Specify width for rectangles: type 0.70, where 0.70, is the Width of the rectangle, and press ENTER. The rectangle was designed as you see in Fig.2.2.5.3, without the dimensions and text.
Using the Area and the Length or the Width of the rectangle:
- Specify on the screen the first point P1 of the rectangle as shown in Fig.2.2.5.4.
- To do this pick a point on the screen near to point P1, or for more accuracy type on the Command prompt: 2,2 to insert the coordinates of the first point P1 (X= 2, Y= 2), and define the first point of the rectangle.
- At the prompt: Specify the opposite corner of the rectangle , type the letter a (which means Area)
- on the Command prompt: Enter area of rectangle in current units<>: type 20.40, where 20.40, is the Area of the rectangle, and press ENTER.
- on the Command prompt: Calculate rectangle dimensions [Length/Width] < >: Choose the width of the rectangle, and press ENTER.
- on the Command prompt: Enter rectangle length < >: type 4, where 4 is the Length of the rectangle, and press ENTER. The result is as shown in Fig.2.2.5.4.
