|
Description
|
Returns a reference to a collection of "BlockRecord" objects. Each object corresponds to an entry of the Block Record table (BLOCK_RECORD) of the DXF file.
|
Syntax Visual Basic
|
[form.]DXFReader.BlockRecords
|
|
Visual C++
|
C_Collection DXFReader.GetBlockRecords();
|
|
Delphi
|
property BlockRecords: _Collection;
|
|
C#
|
VBA.Collection DXFReader.BlockRecords;
|
|
Remarks
|
Use the BlockRecords collection to retrieve or remove an individual BlockRecord object.
The methods of the BlockRecords collection are:
| Count | Counts the defined BlockRecords | | Remove | Removes a BlockRecord object from the BlockRecords collection |
To count all the objects of the BlockRecords collection use the following code:
Dim NBlockRecords As Long
NBlockRecords = DXFReader1.BlockRecords.Count
To remove a BlockRecord object, for example the first, from the BlockRecords collection use the following code:
DXFReader1.BlockRecords.Remove (1)
All of the properties for the BlockRecord object are listed in the following table:
| Property | Data Type | Description |
| | BlockName | String | Block name | | Handle | String | Handle |
The code below lists the contents of the BLOCK_RECORD table of e DXF file:
Dim BlockRecord as Object
With DXFReader1
For Each BlockRecord In .BlockRecords
Printer.Print BlockRecord.BlockName
Next BlockRecord
End With
|
|
Data Type
|
Collection
|