iLogic Activate sheet that had Red Lightning Bolt

Anonymous

iLogic Activate sheet that had Red Lightning Bolt

Anonymous
Not applicable

Hi Guys,

 

TLDR: Code to only update sheets that require update

 

I'm using iLogic to go through all of the sheets in my idw to find unattached annotation and then activate the sheet and return so that I can reattach or delete the dimension. It works quite well right now but I've found that it is only able to find annotations that are on updated sheets. I fixed that problem by adding code to update the sheets before it finds the unattached dimensions but now it takes much longer because it updates every sheet in my set even if it doesn't require update. Is there a snippet that I can put into my rule so that when it goes through the sheets it only activates sheets that have the red lightning bolt? 

 

Thank you for reading!

0 Likes
Reply
Accepted solutions (1)
482 Views
1 Reply
Reply (1)

bradeneuropeArthur
Mentor
Mentor
Accepted solution
Use:
Dim a as sheet = doc.sheet
For each a in doc.sheets
If sheet.requiresupdate then
Msgbox ("upadate")
End if
Next

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !