Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why would this fail?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
meck
446 Views, 2 Replies

Why would this fail?

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
2 REPLIES 2
Message 2 of 3
meck
in reply to: meck

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
Message 3 of 3
jdkriek
in reply to: meck

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.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report