| Get Block Attributes .NET |
|
|
|
| Tutorials | |||
|
The sample below show a code to access a blocks attributes using VB.NET [code] Private Sub GetBlockAttributes() Dim AcadApp As Object AcadApp = StartAutoCADSession() Dim I As Integer For Each entity In dbxDoc.PaperSpace If TypeName(entity) = "IAcadBlockReference" Then varAttributes = entity.GetAttributes For I = LBound(varAttributes) To UBound(varAttributes) MsgBox("BLOCKNAME: " & entity.name & vbCr _ Next End Sub [/code]
|


