08-16-2020
02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-16-2020
02:14 AM
Ilogic error after update
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.
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.
08-17-2020
03:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-17-2020
03:58 AM
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
(Not an Autodesk Employee)