I am trying to read block attributes out of autocad with the objectdbx method. I've it working successfully to a point.. in my code below, I'm connected to AutoCAD, I've opened the drawing, and I'm reading the blocks.
It's reading the blocks and putting them in the datagridview, but where there are two of a block in the file, it's only picking up one of them.
Also, how can I can get custom Attributes of the block?
Dim Block As AXAUTO15Lib.AcadBlock
For Each Block In V_AutoCadInterfaceObject.Blocks
If Block.Name.ToString = "START" Then
DataGridView1.Rows(CurrentDataGridView1Row).Cells(0).Value = Block.Name.ToString
CurrentDataGridView1Row = CurrentDataGridView1Row + 1