1. Trang chủ
  2. » Công Nghệ Thông Tin

autocad 2008 autocad lt 2008 no experience required - phần 6 pot

73 294 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 73
Dung lượng 1,5 MB

Nội dung

3. Erase all the circles, letters, and numbers in the grid except those for A and 1. Leave the grid lines intact (see Figure 9.1). FIGURE 9.1: The floor plan of Cabin8e with all but two grid symbols erased FIGURE 9.2: The Properties palette for the text 4. Select the letter A, right-click, and then choose Properties from the context menu. The Properties palette displays information about the text (see Figure 9.2). You need to know the text style and height: Label and 1'-0". 5. Close or minimize the Properties palette, and then erase A and 1, but not the circles. 6. Start the Scale command. Select the circle on the top, and press ↵. Using Attributes for a Grid 341 26531ch09.qxd 3/30/07 6:11 PM Page 341 7. Use the Endpoint osnap, and pick the endpoint of the grid line where it meets the circle. Enter 1.25↵. This enlarges the circle. 8. Repeat steps 6 and 7 for the circle on the left side. 9. Choose Draw ➣ Block ➣ Define Attributes to open the Attribute Defi- nition dialog box (see Figure 9.3). In the Attribute area are three text boxes: Tag, Prompt, and Default. The cursor is flashing in the Tag text box. Think of the letter in the grid circle. It’s a grid letter, which is a tag that provides the visual textual information. FIGURE 9.3: The Attribute Definition dialog box 10. Enter grid_letter. Don’t press ↵. 11. Press the Tab key to move to the Prompt text box. Here you enter a prompt, which will ask the future user who will be setting up a grid, for the text to input for the tag. 12. Enter Enter grid letter. Press Tab to move to the Default text box. Here you enter a default or sample value that is used if the future user presses ↵ instead of entering a new value. You want it capitalized in this case, so enter A. This sets up the attribute so that the drafter setting up the grid will be prompted to enter the grid letter and will be given a default of A. The capital A lets the user know that the letter should be uppercase. Chapter 9 • Using Dynamic Blocks and Tables342 26531ch09.qxd 3/30/07 6:11 PM Page 342 13. The lower portion of the dialog box is where you set up parameters for the attribute text: location in the drawing, justification, text style, height, and rotation. Click the Justification drop-down list, and select Middle Center. 14. Choose Label in the Text Style list box. Because the Label text style’s height is set to a value other than 0'0", the Text Height text box in the Attribute Definition dialog box is grayed out. Figure 9.4 shows what you should see. FIGURE 9.4: The Attribute Definition dialog box showing the appropri- ate values 15. Click OK. Doing so returns you to the drawing to pick an insertion point. Back in the drawing, use the Center osnap, and click the circle at the top of the grid. GRID_LETTER is centered over the circle (see Figure 9.5), and the Attdef command ends. The text over the circle is called the attribute definition. Its function in Auto- CAD is similar to that of a block definition. When you made the win-1 block for the windows, the definition was a 12"-long window with an insertion point. When the win-1 block is inserted, you can use the original block definition to make windows of various sizes. The same is true for the attribute definition. When it becomes part of a block that’s inserted, the attribute can be any letter you want. You’ll see that happen in a minute. Using Attributes for a Grid 343 26531ch09.qxd 3/30/07 6:11 PM Page 343 FIGURE 9.5: The first attribute definition placed in the grid circle First, make a similar attribute definition for the numbered grid symbol: 1. Enter att↵ to start the Attribute Definition command. The Attribute Definition dialog box opens again. 2. Repeat steps 10–15 in the preceding exercise, using the following guidelines: a. Enter grid_number in the Tag text box. b. Enter Enter grid number in the Prompt text box. c. Enter 1 in the Default text box. d. Select Middle Center from the Justification drop-down list. e. Click OK, use the Center osnap, and click the grid circle on the left. The second attribute definition is centered over the circle on the left side (see Figure 9.6). Chapter 9 • Using Dynamic Blocks and Tables344 26531ch09.qxd 3/30/07 6:11 PM Page 344 FIGURE 9.6: The second attribute definition is placed. You now have two attribute definitions and are ready to make each of them part of a block that includes the circle over which they’re currently centered. Defining Blocks with Attributes You have to define two blocks for the grid symbols and their attributes. The insertion point for the block used for the top of the grid should be at the lowest point of the circle. The insertion point for the block used for the left side should be at the point on the circle farthest to the right. Follow these steps: 1. Click the Make Block button on the Draw toolbar to start the Block command, and open the Block Definition dialog box. 2. In the Name drop-down list, enter grid-v (for vertical) in the blank space, and then click the Pick Point button in the Base Point area. 3. In the drawing, use the Endpoint osnap, and select the grid line that ends at the circle on top. 4. In the Block Definition dialog box that reopens, click the Select Objects button in the Objects area. 5. In the drawing, select the circle and attribute definition on the top. Press ↵. Using Attributes for a Grid 345 26531ch09.qxd 3/30/07 6:11 PM Page 345 6. In the Block Definition dialog box, be sure the Delete button is selected in the Objects area, and click OK. The block is defined and includes the attribute definition. In the drawing, the top circle and attribute definition have been deleted. 7. Start the Block command again. Repeat steps 2–6 to define a second block for the circle and attribute definition on the left side. Use the following guidelines: a. Enter grid-h in the Name drop-down list. b. Click Pick Point. Use the Endpoint osnap, and pick the horizontal grid line that ends at the rightmost point of the grid circle on the left of the floor plan. c. When selecting objects, select the circle on the left and its attribute definition. When you complete the command, you have a second block definition that includes an attribute definition and no grid circles in the drawing. Inserting Blocks with Attributes Let’s insert these blocks (which are now grid symbols) at the endpoints of the grid lines. As you insert them, you’ll assign them the appropriate letter or number: 1. Be sure the Endpoint osnap is set to be running, and then enter attdia↵. 2. If the value in the angle brackets is set to 0, press ↵. Otherwise, enter 0↵. 3. Choose Insert ➣ Block, or enter i↵. In the Insert dialog box, open the Name drop-down list, and select grid-v. 4. Be sure the Specify On-Screen box is checked for Insertion Point but not for Scale and Rotation. Click OK. 5. Click the leftmost vertical grid line in the drawing. Now look at the bottom line in the Command window. Chapter 9 • Using Dynamic Blocks and Tables346 Ǡ The attdia variable defines whether the Insert command opens a dialog box or prompts the user, at the Command prompt, for attribute information. When it is set to 0, no dialog box is used. 26531ch09.qxd 3/30/07 6:11 PM Page 346 This is the text you entered in the Attribute Definition dialog box for the prompt. A is the text you entered as the default value. To accept the default value for this grid line, press ↵. 6. This inserts the grid symbol at the endpoint of the leftmost vertical grid line (see Figure 9.7). FIGURE 9.7: The first grid symbol block is inserted. 7. Press ↵ to restart the Insert command. Click OK to accept grid-v as the current block to be inserted. 8. Click the grid line to the right of the one you just selected. 9. At the Enter grid letter <A>: prompt, enter B↵. The second grid symbol is inserted on a grid line, and the letter B is located in the circle. Be sure to use a capital B here; the tag will not prevent you from using a lowercase letter, but drawing standards require consistency. 10. Repeat steps 7–9 to insert the other two grid symbols across the top of the floor plan. 11. Continue repeating steps 7–9, but select the grid-h block for the three grid symbols that run down the left side of the floor plan. The results should look like Figure 9.8. Using Attributes for a Grid 347 26531ch09.qxd 3/30/07 6:11 PM Page 347 FIGURE 9.8: The grid with all symbols inserted Editing Attribute Text To illustrate how you can edit attribute text, let’s assume you decide to change the C grid symbol to B1. You must then change the D symbol to C. Here are the steps: 1. Double-click the C grid symbol. Doing so opens the Enhanced Attribute Editor dialog box. You can change several items here, but you want to change only the value. Chapter 9 • Using Dynamic Blocks and Tables348 26531ch09.qxd 3/30/07 6:11 PM Page 348 2. Be sure the Attribute tab is selected. Highlight C in the Value text box, enter B1, and then click the Apply button. B1 replaces C in the larger window where the tag, prompt, and value appear together. Click OK to close the dialog box. NOTE Because you set the justification point for the attribute text to Middle Center and located the text at the center of the grid circle, the B1 text is centered in the circle just like the single letters. 3. Double-click the D grid symbol. 4. In the Enhanced Attribute Editor dialog box, repeat step 2 to change D to C. The attributes are updated (see Figure 9.9). FIGURE 9.9: The grid symbols after being updated The exercises have illustrated the basic procedure for defining, inserting, and changing attributes. You can apply these same procedures to the process of set- ting up a title block in which attributes are used for text that changes from one sheet to the next. You can now move to a more complex application of the attribute feature to see its full power. Using Attributes for a Grid 349 26531ch09.qxd 3/30/07 6:11 PM Page 349 Setting Up Multiple Attributes in a Block The cabin has three rooms and a balcony, with the kitchen and living room sharing the same space. Each room has a different area and floor covering. You can store this information, along with the room name, in the drawing as attrib- utes. You’ll set up a block that consists of three attributes (name, area, and cov- ering). You’ll then insert the block back into the floor plan. If you remember, the text style for the room labels is LABEL. You’ll use that for the attributes. You have to erase the room labels for now, but it will be handy to mark their justification points. That way, you can insert the attribute exactly where the label text is now. Follow these steps: 1. With the Grid layer current, choose Format ➣ Point Style to open the Point Style dialog box (see Figure 9.10). FIGURE 9.10: The Point Style dialog box 2. Click the fourth point style example in the second row (the one with a circle and an x). Then, click OK to close the dialog box. 3. Set the Insertion osnap to be running, and then click the Point but- ton on the Draw toolbar. Place the cursor on the LIVING ROOM text. When the Insertion symbol appears at the lower-left corner, click. Don’t end the command yet. 4. Repeat step 3 for the BEDROOM and BATH labels. You don’t need an insertion point marker for the KITCHEN label because it will remain as is and have no attributes. The balcony doesn’t have text in this drawing, so you can place the attribute anywhere you want. Press Esc to end the Point command. 5. Erase the LIVING ROOM, BEDROOM, and BATH labels. The drawing should look like Figure 9.11. Chapter 9 • Using Dynamic Blocks and Tables350 Ǡ A point locates a single location in space, defined by an X,Y, and Z position, with no volume. The Point Style dialog box determines how the marker at the point location appears. 26531ch09.qxd 3/30/07 6:11 PM Page 350 [...]... door block in the Block Editor You want to be able to use this door block for openings of the following widths: 2 '-0 ", 2 ' -6 ", 3 '-0 ", and 3 ' -6 " 265 31ch09.qxd 3/30/07 6: 11 PM Page 365 Creating a Dynamic Block Setting Up Parameters and Actions You’ll use the Linear parameter to set up the 6" increments for the door width Then, you’ll associate a Stretch action with that parameter to allow the door width... action location or [Multiplier/Offset]: prompt, click to place the lightning-bolt action symbol just above the door 6 Click the Scale Action icon on the Actions palette, select the Distance parameter, select the arc, and then press ↵ 265 31ch09.qxd 3/30/07 6: 11 PM Page 367 Creating a Dynamic Block 7 At the Specify action location or [Base type]: prompt, place the Scale lightning-bolt symbol just outside... to Door Opening 3 6 7 265 31ch09.qxd 3/30/07 3 6 8 6: 11 PM Page 368 C h a p t e r 9 • U s i n g D y n a m i c B l o c k s a n d Ta b l e s 3 Scroll down to the Value Set section, and click the text box for Dist Type, where it says None Then, open the drop-down list, and select Increment 4 Moving down, line by line, set Dist Increment to 6" , Dist Minimum to 2', and Dist Maximum to 3 '6 5 Deselect the Distance... can shorten it to two decimal places.) 5 Repeat this process for the living room, in which you’ll have to pick six points The area should be 2 36. 666 7 square feet Write down 2 36. 67 6 Repeat this process one last time for the balcony The area should be 31.80 86 square feet Write down 31.81 7 Make the Text1 layer current, turn on all the layers except Tblk1, and then freeze the Area layer 8 Click the X... the lower-left corner of the door, and then click the lower endpoint of the door swing 3 Move the cursor down to position the dimension symbol a little below the door block, and then click to place it (see Figure 9.22) F I G U R E 9 2 1 : The Linear Parameter in the Block Authoring palettes F I G U R E 9 2 2 : The Linear parameter is placed 3 6 5 265 31ch09.qxd 3/30/07 3 6 6 6: 11 PM Page 366 C h a... layers turned off except Area, Balcony, and Walls 265 31ch09.qxd 3/30/07 6: 11 PM Page 355 Setting Up Multiple Attributes in a Block 3 Make sure that the Endpoint osnap is running 4 Draw a closed polyline around the inside of each room 5 Draw a polyline from the upper-left corner of the balcony to the bottom-left corner (see the left of Figure 9. 16) 6 Enter a↵ to activate the Arc feature of the polylines... then select the bathroom polyline 3 Press the F2 key to open the AutoCAD Text Window, which displays the results of your calculation: Area = 561 6.00 square in (39.0000 square ft.), Perimeter = 25 '-0 " 4 Write down the area in square feet Press ↵ to restart the Area command, enter o↵, and then click the bedroom polyline The area should be 76. 2222 square feet Write down this number (You can shorten it to... between the current segment’s endpoints 11 Repeat step 10 with the remaining arc segment 3 5 5 265 31ch09.qxd 3/30/07 3 5 6 6:11 PM Page 3 56 C h a p t e r 9 • U s i n g D y n a m i c B l o c k s a n d Ta b l e s Now that the perimeter lines are drawn, you need to actually calculate the area bound by them 1 Right-click any toolbar button and choose ACAD ➣ Inquiry from the shortcut menu to open the Inquiry... attributes’ values for the living room, along with their tags and prompts You can now change any of the values When you highlight an attribute, its value appears in the Value text box, where you can edit it 265 31ch09.qxd 3/30/07 6: 11 PM Page 361 Setting Up Multiple Attributes in a Block 2 You won’t make any changes now Click Cancel to close the dialog box and return to the drawing 3 Save this drawing... dialog box opens Double-clicking the block does the same thing Using the Properties Palette to Edit Attribute Definitions Use the Properties palette to edit most properties of attribute definitions before they become part of a block Select the attribute definition, and then click the Properties button on the Standard toolbar Continues 3 6 1 265 31ch09.qxd 3/30/07 3 6 2 6: 11 PM Page 362 C h a p t e r 9 • . pick six points. The area should be 2 36. 666 7 square feet. Write down 2 36. 67. 6. Repeat this process one last time for the balcony. The area should be 31.80 86 square feet. Write down 31.81. 7. Make. 0, no dialog box is used. 265 31ch09.qxd 3/30/07 6: 11 PM Page 3 46 This is the text you entered in the Attribute Definition dialog box for the prompt. A is the text you entered as the default value segment. Setting Up Multiple Attributes in a Block 355 265 31ch09.qxd 3/30/07 6: 11 PM Page 355 Now that the perimeter lines are drawn, you need to actually calculate the area bound by them. 1. Right-click any

Ngày đăng: 08/08/2014, 23:21

TỪ KHÓA LIÊN QUAN