Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So, I've got some code to look for a block and change a certain attributevalue.
This code works fine for as long as its just a block
At dynamic blocks however (the block I want to change the value of does also have an visibility state in it. The attribute value isn't connected to the visibility state and the same in all states) it doesn't work anymore.
Anyone knows how to deal with it?
The code i've got looks something like this:
For Each obj In ThisDrawing.PaperSpace If TypeOf obj Is AcadBlockReference Then If obj.Name = "Iv-Tekhoofd_A0_V2.8" Then attlist = obj.GetAttributes For i = LBound(attlist) To UBound(attlist) If attlist(i).TagString = "SHEET_NO" Then attlist(i).TextString = layout.TabOrder & " van " & aantal End If Next End If End If Next
Solved! Go to Solution.