iLogic error from Level of Detail being removed in Inventor 2022

iLogic error from Level of Detail being removed in Inventor 2022

blawrenceH9AYR
Explorer Explorer
326 Views
2 Replies
Message 1 of 3

iLogic error from Level of Detail being removed in Inventor 2022

blawrenceH9AYR
Explorer
Explorer

I have hundreds of parts/assemblies that have an iLogic rule that edits the level of detail when opened. We've recently upgraded to Inventor 2022 which has removed the level of detail feature. Whenever I open an assembly that contains any of these parts I get an error for each part that contains this rule. 

 

My question is, is there a way to quickly edit/remove the rule from all of these files, or a way to suppress the rule in all of the files?

 

Also we are using Vault, so we would have to change the state of all of these files to edit them.

0 Likes
327 Views
2 Replies
Replies (2)
Message 2 of 3

J-Camper
Advisor
Advisor

If the rule is triggering from event triggers, you could try temporarily disabling all event triggers:

temp_pic.JPG

 

Then run a rule to look for and suppress the run you are talking about.  Like this:

'Setup Assumes added locally to Assembly Document
Dim oDoc As AssemblyDocument = ThisApplication.ActiveDocument
Dim RuleName As String = "Leader_Text"
Dim oRefDoc As Document
Dim docCol As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
'collect documents
For Each oRefDoc In oDoc.AllReferencedDocuments
	If oDoc.ComponentDefinition.Occurrences.AllReferencedOccurrences(oRefDoc).Count > 0
		docCol.Add(oRefDoc)
	End If
Next
'Check/Update Rules
For Each oRefDoc In docCol
	Try
		iLogicVb.Automation.GetRule(oRefDoc, RuleName).IsActive = False
	Catch
		Logger.Trace("Failed to suppress: " & RuleName & " in: " & oRefDoc.DisplayName)
	End Try
Next
0 Likes
Message 3 of 3

CattabianiI
Collaborator
Collaborator
0 Likes