Читать книгу Advanced AutoCAD 2016 Exercise Workbook - Cheryl R. Shrock - Страница 12

Оглавление

LEARNING OBJECTIVES

After completing this lesson, you will be able to:

1. Create a Table

2. Insert a Table

3. Modify an existing Table

4. Insert a Block into a Table Cell

5. Insert a Formula into a Table Cell

6. Create a Field

7. Update a Field

8. Edit an existing Field

9. Break a table

LESSON 5

TABLES

A Table is an object that contains data organized within columns and rows. AutoCAD’s Table feature allows you to modify an existing Table Style or create your own Table Style and then enter text or even a block into the table cells. This is a very simple to use feature with many options.

This is an example of a Table.


HOW TO CREATE A TABLE.

1. Select the Table Style command using one of the following:

Ribbon = Annotate tab / Tables panel /

Keyboard = ts

The following dialog box will appear.


2. Select the NEW button. The following dialog will appear.


3. Enter the new Table Style name. Note: When you create a new table style you always “Start With” an existing style and you specify the differences.

4. Select the Continue button.

The New Table Style dialog box appears. Customize the table by selecting options described below.


5. Select which direction you want the table displayed.

Up: Title and Header at the Bottom then data follows.

Down: Title and Header at the Top then the data follows.


6. Select the Cell style that you wish to modify. (Data, Header or Title).


7. Select one of the Properties tabs after you have selected which “Cell Style” that you wish to modify.


General tab


Fill Color: Background color of cell.

Alignment: Justification for the text inside the cell.

General button: Formats the cell content to: angle, currency, date, decimal number, general (default), Percentage, Point, Text or whole number.

Type: Cell style either Label or Data

Margins: Controls the spacing between the border of the cell and the cell content. Margins apply to all cells in the table.

Merge cells on row/column creation: Merges any new row or column created with the current cell style into one cell.

Text tab


Text style: List all text styles in the drawing.

Click the button to create a new text style.

Text height: Sets the text height

Text color: Specifies the text color

Text angle: Specify the rotation angle of the text.

Borders


Lineweight: Selects lineweight for cell border

Linetype: Selects the linetype of the cell border.

Color: Select color for cell border.

Double line: Border lines are displayed as double lines.

Spacing: Specifies the double line spacing.

Border Buttons: Controls the appearance of the gridlines.

8. Select the OK button after all selections have been made.

Note: Tables are saved in the drawing. If you open another drawing you need to copy the previously created table using Design Center. (Refer to Lesson 10).

9. Select the Table Style from the list of styles.

10. Select “Set Current” button.

11. Select the “Close” button.


The new style name is now displayed in the Tables Panel.


How to Insert a Table

1. Select Table from the Table panel or type: table <enter>

The Insert Table dialog box will appear.


2. Select the Table Style

3. Select the Insertion behavior.

Specify Insertion Point: When you select the OK button you select the location to insert the table with the Columns and Rows previously selected.

Specify window: When you select the OK button you select the location for the upper left corner of the table. Then drag the cursor to specify the Column width and number of Rows, on the screen.

4. Specify the Column and Row specifications.

5. Set cell styles: Specifies the Row settings if you haven’t selected a previously created Table Style.

6. Select OK button.

Note:

Tables should always be inserted into Paper space or model space with a scale of 1:1. If your table does not appear, confirm you are in paper space or model space with a scale of 1:1.

7. Place the Insertion Point. (The table will be attached to the cursor).


8. The Table is now on the screen waiting for you to fill in the data, header and title.

Notice the Text Editor automatically appeared. This allows you to change the format of each cell as you desire.

9. When you have filled all of the cells you require, select Close Text Editor.

How to Insert a Block into a Cell

1. Left click in the cell you wish to insert a block.


2. Right click to display the menu.

3. Select Insert / Block from the menu.


4. Select the Block name (a preview appears)

5. Select the Scale.

Note: AutoFit will automatically size the block to fit within the cell.


6. Select Rotation angle.

7. Select the Overall cell alignment.

8. Select the OK button.

How to Insert a Formula into a Cell

You may apply simple numerical operations such as Sum, Average, Count, set cells equal to other cells or even add an equation of your own. The following examples are for Sum and Average operations.

SUM

1. Click in the Cell in which you want to enter the Sum formula.


2. Right click and select: Insert / Formula / Sum


3. The following instruction appears on the Command Line:

EDITTABLECELL Select first corner of table cell range: left-click the first corner of a window selection inside the cells you want to use for the sum (P1)

4. The following instruction appears on the Command Line:

EDITTABLECELL Select second corner of table cell range: drag the cursor to the opposite corner inside the cells you want to use for the sum, then left-click (P2)


5. The formula appears in the cell. Verify the formula and select Close Text Editor. You may edit the formula if necessary.


Notice the formula disappears and the sum of the cells selected has been calculated. Also the value is shaded to make you aware that this cell has a formula in it.


AVERAGE

1. Left click in the Cell that you wish to enter a formula.


2. Right click and select: Insert Formula / Average


3. The following instruction appears on the Command Line:

EDITTABLECELL Select first corner of table cell range: left-click the first corner of a window selection inside the cells you want to use for the average (P1)

4. The following instruction appears on the Command Line:

EDITTABLECELL Select second corner of table cell range: drag the cursor to the opposite corner inside the cells you want to use for the average, then left-click (P2)


5. The formula appears in the cell. Verify the formula and select Close Text Editor. You may edit the formula if necessary.


Notice the formula disappears and the average of the cells selected has been calculated. The value is shaded to make you aware that this cell has a formula in it.


NOTE:

You can change the amount of places after the decimal point by left-clicking in the Average formula cell and then select Data Format from the menu, this opens the Table Cell Format dialog box where you can change the decimal precision of the formula. (Refer to page 5-13)

How to Change the Data Format of a Cell

1. Left click in the cell with the formula you wish to change.


2. Right click and select Data Format from the menu.


3. Select Decimal from the Format list in the Table Cell Format dialog box.

4. Select the required decimal precision from the Precision drop-down list (You can see a preview of the precision).


5. Select OK to close the dialog box, then press the Esc key to deselect the cell.

6. The formula in the cell has now changed to the required decimal precision.


Modify a Table Using the Ribbon Tab

So far in this lesson you have been using the right-click menus to add formulas to, or modify data in a cell, but AutoCAD also has the Table Cell Contextual Ribbon tab. The Table Cell tab has nearly all of the features that are available in the right-click menus.

To modify a Table or Cell using the Table Cell Ribbon tab:

1. Single left-click on any cell to enable the Table Cell Contextual Ribbon tab.

2. The Table Cell Contextual Ribbon tab will appear with various editing panels.


It is worth experimenting with all the tools on the ribbon tab. It is also your choice on whether you use the right-click menus or the contextual ribbon tab when adding or modifying data in a table, some people prefer to use right-click menus for speed and efficiency, others prefer the contextual ribbon tab. The choice is yours.

Modify a Table Using Grips

You may also modify tables using Grips. When editing with Grips, the left edge of the table remains stationary but the right edge can move. The upper left Grip is the Base Point for the table.

To use Grips, click on a table border line. The Grips should appear. Each Grip has a specific duty, shown below. To use a Grip, click on the Grip and it will change to red. Now click and drag it to the desired location.


Top of Column

There is a Grip located at the top of each column line. These Grips adjust the width of the column to the left of the Grip.

The column will change but the width of the entire Table remains unchanged.

If you hold the CTRL key down while moving a column Grip, the entire Table adjusts at the same time.


Autofill Grip

The AutoFill grip allows you to fill the cells automatically by increments of 1 by selecting 1 cell and dragging to the next cell.

Make sure the cell data format is set correctly. (Refer to 5-17)

1. Place data in a cell. (Important: Data format should be “whole number”. Refer to page 5-17)

2. Click on the AutoFill Grip.

3. Drag the cursor down to the desired cells.

4. The cell data advances by 1 unit.


If you select 2 cells AutoFill will follow the incremental advance between the 2 cells. For example, if the date advances by 1 week rather than 1 day.

Advanced AutoCAD 2016 Exercise Workbook

Подняться наверх