Читать книгу Advanced AutoCAD 2014 - Cheryl R. Shrock - Страница 12
Оглавление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.
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.
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:
EDITTABLECELLSelect 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:
EDITTABLECELLSelect 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:
EDITTABLECELLSelect 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:
EDITTABLECELLSelect 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.
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.
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.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.
1.Fill two cells with the required dates and then select them both by holding down the Shift key and left-clicking each one. (Important: Set data format to “Date” Refer to page 5-17)
2.Select the AutoFill Grip
3.Drag the cursor down to the desired cells.
4.Cell data advances by 1 week.
Autofill Options
You can specify how you want the cells formatted.
1.Left click on the AutoFill Grip.
2.Right click on the AutoFill Grip.
3.Select an Option from the List. (Description of each is shown below.)
•Fill Series. Fills the subsequent cells with the data from the selected cell and advances at a rate of 1 unit. The format of the selected cell is maintained.
•Fill Series Without Formatting. Same as Fill Series except the formatting is not the same as the selected cell.
•Copy Cells. Duplicates the values and the formatting of the selected cells.
•Copy Cells Without Formatting. Same as Copy Cells except the formatting is not the same as the selected cell.
•Fill Formatting Only. Fills only cell formatting for the selected cells. Cell values are ignored.
To change the data formatting within a cell.
1.Left click inside the cell.
2.Right click and select Data Format.
3.Select from the Data type list.
A long table can be broken into 2 or more separate tables using the Table Breaking Grip.
1.Click on the table border line.
2.Click on the Table Breaking Grip.
3.Move the cursor up to the cell location for the Table Break and left click.
You will notice that the main and sub headings are not repeated on the second part of the broken table, you can change this in the Properties dialog box.
To add the headings on both tables.
1.Click on the table border line. (if it is already selected as above, skip this instruction)
2.Right click and select Properties.
3.Scroll down to Table Breaks then left click on No next to the Repeat top labels field, this will enable the drop-down list.
4.Select Yes from the list.
5.Both tables will now have the main and sub headings included.
6.Press the Esc key to deselect the table. The broken table should now look similar to the image below.
You can also change the distance between the broken tables by changing the Spacing in the Properties dialog box. You can choose whether to have them closer together or further apart.
There are also many other changes you can make to the broken table, a detailed description is shown below:
Enabled
If this option is set to Yes you can break the table, if it is set to No you cannot break the table.
Direction
Places the broken table to the left, right or down from the original table.
Repeat top labels
You can choose to have the top labels shown on all the broken tables or just the first part.
Repeat bottom labels
If your table has bottom labels you can choose to have the bottom labels shown on all the broken tables or just the first part.
Manual positions