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: 

E_UNEXPECTED on iProperty read

3 REPLIES 3
Reply
Message 1 of 4
FRFR1426
279 Views, 3 Replies

E_UNEXPECTED on iProperty read

I'm trying to read an user defined property and sometimes I've got this exception:

 

System.Runtime.InteropServices.COMException (0x8000FFFF): Défaillance irrémédiable (Exception de HRESULT : 0x8000FFFF (E_UNEXPECTED))
   à System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   à Inventor.PropertySets.get_Item(Object Index)

 

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
3 REPLIES 3
Message 2 of 4
philippe.leefsma
in reply to: FRFR1426

Looks to me you are asking the same question in that thread:

http://forums.autodesk.com/t5/inventor-customization/e-fail-on-propertysets-access/m-p/5445888

 

Please clarify if I'm not correct.

 

Thank you,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 4
FRFR1426
in reply to: philippe.leefsma

Hi Philippe,

 

No, it's not a duplicate. In fact I've got two errors. One happens on call to Inventor.ApprenticeServerDocument.get_PropertySets() (E_FAIL) and another on call to Inventor.PropertySets.get_Item (E_UNEXPECTED). The first one is very mysterious because it happens when I fetch the property sets (User Defined Properties). I don't understand why this is failing. The file is not corrupted. This happens on my client computer, but I'm not able to reproduce it on my computer.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Message 4 of 4
philippe.leefsma
in reply to: FRFR1426

Without a reproducible sample on our side, it's unlikely we can help you further. If the behavior happens on a specific data on that machine, please provide a code sample along with the data, otherwise you may want to suggest to your customer a reinstall of either Inventor or InventorView if he is just using Apprentice.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report