I am working on iLogic rule, part of what I need the rule to do is to change the border on all of the sheets in the current idw. I have seen how to get iLogic to change it on the active sheet, but I am concerned about what will happen on a multi-sheet drawing. So the final piece of the puzzle for my rule is: is there a way to change the borders on all of the sheets with one command or is there a property/variable the that knows how many sheets are in the idw files. I currently have a loop that will cycle through all of the sheets changing the border, so if I figure how to have my rule read that variable/property, I should be in good shape.
Thanks for you help.
Steve
Solved! Go to Solution.
Solved by MjDeck. Go to Solution.
Without looking at the total number of sheets, you can iterate through all the sheets and set the border like this:
For Each sheetX As Sheet In ThisDrawing.Document.Sheets ThisDrawing.Sheet(sheetX.Name).Border = borderName Next
You can also read the number of sheets with code like this:
Dim sheetCount As Integer = ThisDrawing.Document.Sheets.Count
Mike,
That works. Thanks a lot.
Steve