Cadtales
Using Dynamic Blocks in Tables
This topic is task oriented to
demonstrate some important benefits of using Dynamic
Blocks in AutoCAD Tables. For reference, see the
previous Cadtales article DYNAMIC BLOCKS and refer to the
AutoCAD help file for TABLES.
Dynamic Blocks are blocks with
enhanced features to store, and display on command, specific
views, configurations, logical data and alternate designs. A
single Dynamic Block can encompass the same dynamic range of
parameters normally covered by hundreds of individual design
variations. For example, a family of fasteners with
variables for head type, tool shape, length, diameter,
thread count, etc., can be incorporated into one
Dynamic Block.
A Dynamic Block will have one or
more parameters or properties assigned. In currently
supported AutoCAD releases object properties can be
extracted and tabulated in the same way Attributes have been
used in current and earlier versions of the program.
Tables are AutoCAD geometric
& text objects based on preset and variable parameters.
Tables are defined in the Format>Table style command. Most
Table parameters are preset in the style, however, Table
dimensions, row and column counts are set automatically by
the data being imported or manually at the time of
insertion. Tables can be created from the Tools>Data
Extraction menu, from the Insert>Table menu or from an Excel
spreadsheet insertion.
In this task well:
- Design an electrical communication symbol with (3)
variations,
- Insert the block (in different configurations) into
a drawing,
- Perform a Data Extraction,
- Designate Dynamic Block properties (parameters) as
relevant data, and
- Create a Table of extracted block "attributes" (for
configured visibilities).
Create a Symbol
Draw the following symbol
components:

Use 0.25" for the edge
dimension for the triangle and 0.2" for the line length.
Use the intersection of the
line and the triangle as the base point.
Save the objects as a Block
named "D" or any other convenient name.
Reminder: Placing all symbol
elements on Layer 0 will allow the finished block to adopt
the properties (color, linetype, etc.) assigned to the layer
on which it is inserted.
Create a Dynamic Block
- Open the Block Editor
and create a new block named "Telecom."
- Insert the "D" block at (0,0) and explode.
- On the Block Editor Palette, Parameters tab, click
Visibility Parameter.

- Place the Visibility Parameter symbol near the
triangle.

- On the Block Editor title-bar, click the Manage
Visibility States button.
- In the Visibility States dialog box rename the
default visibility mode to "DATA." Dont click OK at
this point. While we are here well create two
additional visibility states we need for this Dynamic
Block.

- Click the NEW button and name the new Visibility
State VOICE and check "Hide all existing objects in new
state." Click OK.

- Repeat step 7 above and create a VOICE-DATA
Visibility State. Click OK.
- In the Visibility States dialog box double-click the
VOICE state to make it current (indicated by a check
mark). Click OK to exit.

- In the Block Editor note that VOICE is the current
mode in the Visibility States window and the symbol
elements have been hidden (only the Visibility icon will
be visible).

Insert
the "D" block again at (0,0) and explode.
Add a solid hatch pattern to the triangle.
In the Visibility States window select VOICE-DATA.
Insert
the "D" block again at (0,0) and explode.
Draw a vertical line and solid hatch one side on the
triangle.
In the Visibility States manager use the Move Up and
Move Down buttons to re-order the list with the default
state at the top. (The default visibility mode for a
Dynamic Block on a Palette can also be set through the
tools properties).
Close the Block Editor and save changes.
Insert the Telecom symbol and test your creation.
At this point you could add other
dynamic block parameters and actions to enhance the
usefulness of the block. The Alignment Parameter is
especially applicable to this type of symbol.
Create a Data Table
In this example well start with
the Data Extraction command and let the format of the data
determine the configuration of the table. This means that we
will be using the Standard table style with the default
settings.
- In a new AutoCAD drawing draw a convenient line
configuration to represent a room or space to place the
new Telecom symbols along a "wall."

- Insert several instances of the Telecom block,
rotate as necessary, and place at various wall
locations. Click any Telecom symbol, then the visibility
icon and select either the VOICE-DATA, VOICE or DATA
visibility modes.


- Use the Tools>Data Extraction command to start the
Data Extraction wizard. Make the following selections:
- On Page 1 of 8 Select "Create a new data
extraction." Name the file and save.
- On Page 2 of 8 Click "Select objects in the
current drawing," click the Show Me button.
- Select all Telecom symbols in the drawing that will
be included in the table. Click Next.
- On Page 3 of 8 Display Section: un-check all
except "Display blocks only." The selection window
should show the Telecom object (and any other blocks you
included in the previous instruction). Click Next.

- On Page 4 of 8 Category Filters window: un-check
all filters except "Dynamic Blocks." The selection
window should show Visibility in the Property column.
Click Next.

- Page 5 of 8 In this view you can reorder and sort
columns, filter results, add formula columns, and create
external data links. Click Next.

- Page 6 of 8 Select "Insert data extraction table
into drawing." Click Next.
- Page 7 of 8 Retain the default "Standard" Table
selection. Select "Manually setup table," and enter:
Telecom Device Count, as the new title. Check the "Use
property names as additional column headers" if you want
the visibility mode labels to function as column headers
in the table. Click Next.

- Page 8 of 8 Final direction, place the table in
the drawing or to an external file according to the
choice you made on Page 6 of the wizard. Click Next.
- The Table appears at your cursor, click to place.
- Check your work. The table should reflect the name
and total device count for each active visibility mode
for the selected devices in the drawing.

Updating a Data Extraction Table
You can update the extracted data
in a table or external file manually.
If the drawings that were used for
the data extraction have changed, you can manually update
the data. To update a data extraction table, you can use
either of two methods.
-
Open the drawing that contains the table and use the
Data Extraction wizard to edit the DXE file that
contains the extraction settings.
- Right-click the data extraction table to access its
shortcut menu. Click Data Extraction
Update
Data Extraction.
- Be sure to use the same wizard settings for this
update or your data Table may not reflect the original
content and format. If you chose to "Select objects" on
Page 2 of the wizard you must repeat the selection
process again.
To update the extracted data that
was output to an external file, you use the Data Extraction
wizard and specify the DXE file that was used for the
extraction.
Note: The .dxe file is
saved with the file name and location that was specified
between Pages 1 and 2 of the wizard when a new data
extraction was created.
Check List:
- Create a symbol lock.
- Open in the Block Editor and add Dynamic Parameters
& Actions.
- Create a test drawing file, insert symbols.
- Configure symbols for different views.
- Create a data extraction.
- Configure for the information required in a table.
- Format the table.
- Place the table in the drawing or export to a file.
- Update the table to reflect continuing changes.
Do you see a productivity and
quality benefit in applying Dynamic Blocks and Tables to
your design and drafting environment? Call your
Hagerman sales representative 714-579-0295 about AutoCAD
training and customization or see
http://www.hagerman.com/Contact_Us/Contact.htm
for a location near you.
We want you to succeed!
-0-