- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
OK. Some peoples installs don't seem to like that 'iLogicVb.RuleName' use, even though I've been using it for years without any problems. It is totally unnecessary though, and can simply be completely eliminated/deleted from that message, if it is causing issues. You can have that message say anything you want. It is just meant to inform you if the active document when the rule is started it the right type of document or not, and that if it is the wrong type, it is going to exit the rule without running.
If 'ThisAssembly.Document' is causing you problems, try replacing it with 'ThisApplication.ActiveDocument'.
Although I am curious why it is having a problem with it. Are you running this code as a local iLogic rule, an external iLogic rule, or from Visual Studio? If you are running it normally as an iLogic rule in Inventor, do you have the "Straight VB code" option turned on or are you using other settings within the header area of the rule? If so, you may need to turn that option off. And if necessary, put the whole code within a "Sub Main", then the code, then "End Sub", even though iLogic is supposedly implying those for you in the background.
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click 'LIKE'
.
Wesley Crihfield
(Not an Autodesk Employee)