iLogic Code Error: (Exception from HRESULT: 0x80004005 (E_FAIL))

iLogic Code Error: (Exception from HRESULT: 0x80004005 (E_FAIL))

Anonymous
Not applicable
525 Views
1 Reply
Message 1 of 2

iLogic Code Error: (Exception from HRESULT: 0x80004005 (E_FAIL))

Anonymous
Not applicable

Hi,
 
I have some code that calculates cross-sectional area and area moments of inertia for a part file. Now I am trying to use the same code in an assembly file, and I am getting the following error:
 
     Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
 
From what I've read on the forums, it seems there can be several different issues that cause this. What can I do to fix my code?

 

I attached the assembly file which contains the iLogic code, as well as the part files that I was using with the code.  (I have commented out some of my code, so I can focus on getting the basics first).

 
Thanks.

0 Likes
526 Views
1 Reply
Reply (1)
Message 2 of 2

JamieVJohnson2
Collaborator
Collaborator

Assemblies don't have material:

            iProperties.Value("Custom", "Material") = Format(iProperties.Material)
            iProperties.Value("Custom", "Drawn By") = Format(UCase(iProperties.Value("Summary", "Author")))

Their components do, but you are not cycling through components here.

 

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes