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)
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.
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.
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.