Why would this fail?

Why would this fail?

meck
Collaborator Collaborator
641 Views
2 Replies
Message 1 of 3

Why would this fail?

meck
Collaborator
Collaborator

I have an assembly model that I have a iLogic routine in.

It's been working right along but all of a sudden it stopped working at this code...

 

    Dim oAsmCompDef As AssemblyComponentDefinition
    oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

 

the error info is...

System.Runtime.InteropServices.COMException (0x80020003): Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
   at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
   at LmiRuleScript.Main()
   at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
   at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)

 

It no longer works in any assembly not just the original one.

Please help!

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Accepted solutions (1)
642 Views
2 Replies
Replies (2)
Message 2 of 3

meck
Collaborator
Collaborator
Accepted solution

I just restarted Inventor and it now works again.

Which makes me glad and sad at the same time. I should have thought of this first before posting, but didn't think it would matter.

Let that be a lesson to us all... Restart before posting.

 

Sorry to bother yall.

Peace!

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 3 of 3

jdkriek
Advisor
Advisor

Indeed. Sometimes restarting Inventor is enough and others times rebooting the computer is nessesary.

 

Early in my Inventor career I would get some "bizare catastrophic errors" and Autodesk would say "Did you reboot yet?"

 

Funny thing, I was retrieving some Legacy Pro/E data the other day and had a "bizare catastrophic error" in there as well and I asked our Pro/E expert and he's like "I have no idea, but reboot will fix it", Haha

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


0 Likes