Error in Rule - InventorVb.RunMacro

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Everybody,
I have a macro, which one is working perfectly if I let run it from the Menu (Tools/Macros)
I made a little Rule to start this macro automaticly.
InventorVb.RunMacro("ApplicationProject", "Module2", "Perimeter")
If I try to use this Rule I got the following message:
Error in rule: Rule0, in document: Part1
User interrupt.
System.Runtime.InteropServices.COMException (0x80040561): User interrupt.
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.InventorVBAMember.Execute(Object& FunctionReturnValue)
at iLogic.LowLevelInRule.RunMacro(String projectName, String componentName, String macroName, Object[] args)
at ThisRule.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
Unfortunately I can't find any solution to solve this problem. Can anybody help for me?
Thank you!