Retrieving Block Information
Use the GetBlockInfo command to count the instances of the Blocks used in the drawing.
You can count the instances of all blocks in the drawing or only for a selection of blocks.
The list of blocks and the number of instances found in the drawing (or within the selection set) appears in a dialog box.
You can sort the list according to the names or the number of instances.
You can also specify whether you want to include nested blocks (blocks within other blocks) into block count.
Optionally you can:
- Export list to a file: Exports the list to an ASCII file.
- Export list to a table in drawing: Generates a table in drawing with list contents.
To retrieve information about blocks in the drawing:
- Do one of the following:
- On the ribbon, click XtraTools > Block > Get Block Info.
- On the menu, click XtraTools > Block > Get Block Info.
- Type GetBlockInfo.
- In the graphics area, specify the Blocks for which you want to count the instances and press Enter.
- Do one of the following:
- Specify Yes to count all instances of selected blocks within the entire drawing.
- Specify No to count all instances of selected blocks within the selection.
In the dialog box, the Block names and the number of ther instances display.
- In the dialog box, click the column headers to sort the entries by their name or the number of instances. Repeated clicks switch between ascending and descending order.
- Optionally, select Include nested blocks.
- Click Close.
To export the block information list to a table in the drawing:
- Do one of the following:
- On the ribbon, click XtraTools > Block > Get Block Info.
- On the menu, click XtraTools > Block > Get Block Info.
- Type GetBlockInfo.
- In the graphics area, specify the blocks for which you want to count the instances and press Enter.
- In the dialog box, click the column headers to sort the list as needed.
- Optionally, select Include nested blocks.
- Click Export list to a table in drawing.
This action closes the dialog box.
- In the grafics area, specify the insertion point for the table.
To export the block information list to a file:
- Do one of the following:
- On the ribbon, click XtraTools > Block > Get Block Info.
- On the menu, click XtraTools > Block > Get Block Info.
- Type GetBlockInfo.
- In the graphics area, specify the blocks for which you want to count the instances and press Enter.
- In the dialog box, click the column headers to sort the list as needed.
- Optionally, enable Include nested blocks.
- Click Export list to a file.
This action closes the dialog box.
- Specify folder and name of the file and click Save.
Command: GetBlockInfo
Menu: XtraTools > Block > Get Block Info
Ribbon: XtraTools > Block > Get Block Info