iLogic rules from 2019 to 2020

iLogic rules from 2019 to 2020

Anonymous
Not applicable
565 Views
3 Replies
Message 1 of 4

iLogic rules from 2019 to 2020

Anonymous
Not applicable

In the Inventor 2019 version this rule works correctly, but in the Inventor 2020 version the rule does not work correctly, it does not perform the "Try" part.

Why?

 

Rule:

Dim oComps As DocumentsEnumerator
oComps = ThisApplication.ActiveDocument.AllReferencedDocuments
Dim oComp As Document
    For Each oComp In oComps		
	Try 
		iLogicVb.RunRule(oComp.DisplayName & ":1", "tempo")
	Catch
		ThisApplication.Documents.Open(oComp.FullFileName)
		ThisApplication.Documents.Open(oComp.FullFileName).Close
	End Try
	Next

 

0 Likes
Accepted solutions (1)
566 Views
3 Replies
Replies (3)
Message 2 of 4

CattabianiI
Collaborator
Collaborator

Already posted in the right place.

0 Likes
Message 3 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

Please provide non confidential assembly files to reproduce the error.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 4 of 4

Anonymous
Not applicable
Accepted solution

The problem has been resolved on this page:

https://forums.autodesk.com/t5/inventor-customization/ilogic-rules-from-2019-to-2020/td-p/9330794

 

Dim oComps As DocumentsEnumerator
oComps = ThisApplication.ActiveDocument.AllReferencedDocuments
Dim oComp As Document
    For Each oComp In oComps
	Try 
		'iLogicVb.RunRule(oComp.DisplayName & ":1", "Tempo")
iLogicVb.RunRule(oComp.DisplayName, "Tempo") Catch ThisApplication.Documents.Open(oComp.FullFileName) ThisApplication.Documents.Open(oComp.FullFileName).Close End Try Next

 

Tank you

0 Likes