Ilogic error after update

Ilogic error after update

DClunie
Contributor Contributor
916 Views
1 Reply
Message 1 of 2

Ilogic error after update

DClunie
Contributor
Contributor

Hi recently updated to 2020  from 2018 and I am now vetting this error message when  run an External Ilogic rule that was compiled for creating view reps  . This was working fine in 2018.

Does anyone know what has changed between the way rules work from version 2018 to 2020?

 

Error on Line 2 : Class 'ThisRule' must implement 'Sub Main()' for interface 'Autodesk.iLogic.Interfaces.IRuleInterface'.
Error on Line 1218 : Interface 'Autodesk.iLogic.Interfaces.IRuleInterface' is not implemented by this class.
Error on Line 1234 : 'ThisApplication' is not declared. It may be inaccessible due to its protection level.
Error on Line 1235 : 'ThisApplication' is not declared. It may be inaccessible due to its protection level.
Error on Line 1237 : 'ThisDoc' is not declared. It may be inaccessible due to its protection level.
 
0 Likes
917 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

When you have that rule open within the iLogic rule editor dialog, on the options tab above, did you have the option "Straight VB Code" turned on?  Was the contents of this rule meant to be shared between other iLogic rules?  Did you start the code with "Class ThisRule", and end the code with "End Class"?

Can you share your code here, and tell us what it is supposed to be doing, so we can attempt to 'proofread' it, for errors?

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes