HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))

HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))

Anonymous
Not applicable
659 Views
2 Replies
Message 1 of 3

HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))

Anonymous
Not applicable

 

Hello!

 

I have been creating a proyect on Inventor 2014 and Excel 2010 (Windows 7) but my computer has broken so I buy a new one. On the new computer (Windows 10) I have installed Inventor 2018 and Excel 2010 but the iLogic function doesn´t work right. Below I post the error.

 

I created this rule to control the dimensions of a model: 

 

iLogicForm.Show("Forma 1")

GoExcel.Open("Libro1.xls", "Hoja1")

Ancho=GoExcel.CellValue("Libro1.xls", "Hoja1", "B1")

Largo=GoExcel.CellValue("Libro1.xls", "Hoja1", "B2")

iLogicVb.UpdateWhenDone = True

 

When I ejecute it, an error appears:

 

Error en la regla: Dimensiones, en el documento: Pieza1.ipt

Biblioteca no registrada. (Excepción de HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))

 

More information:

 

System.Runtime.InteropServices.COMException (0x8002801D): Biblioteca no registrada. (Excepción de HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
   en Microsoft.Office.Core.LanguageSettings.get_LanguageID(MsoAppLanguageID Id)
   en iLogic.GoExcel.ExcelAppGetLanguageID(Application app)
   en iLogic.GoExcel.SetCurrentSheet(String fileName, String sheetName)
   en iLogic.GoExcel.get_CellValue(String fileName, String sheetName, String cellAddress)
   en LmiRuleScript.Main()
   en Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
   en iLogic.RuleEvalContainer.ExecRuleEval(String execRule)

 

I hope you can help me.

 

THANKS!!

0 Likes
660 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Hi andreamt9377,

 

just try this code snippet instead of "iLogicVb.UpdateWhenDone = True".

 

 

    'Updating the document
    InventorVb.DocumentUpdate()

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hi @Anonymous, 

 

Thanks for the answer, I have tried the code you have posted but it still doesn´t work.. The error is the same. I think it might be a compatibility problem between Inventor and Excel because I have written other rules to control the part´s activation and it works fine.

 

 

 

 

0 Likes