access SolidEdgeFileProperties within AddIn


When trying to access SolidEdgeFileProperties and when opening a file within addin get an exception "Exception has been thrown by the target of an invocation".

Any idea why or how can I resolve it?


Type t = Type.GetTypeFromProgID("SolidEdge.FileProperties");
SolidEdgeFileProperties.PropertySets addin_PropertySets = Activator.CreateInstance(t) as SolidEdgeFileProperties.PropertySets;

arguments = new object[] { document.FullName, true };
addin_PropertySets.GetType().InvokeMember("Open", System.Reflection.BindingFlags.InvokeMethod, null, addin_PropertySets, arguments);       


Posted by: joseph polk
Post date: 6/20/2012 8:28:22 PM


Re: access SolidEdgeFileProperties within AddIn

Sleeping is great Smiley Happy

50% Solved - I had the same file open by solid, the SolidEdgeFileProperties open failed upon opening the file.


How can I access the SolidEdgeFileProperties from an already open file?


Posted by: joseph polk
Post date: 6/21/2012 6:27:35 AM