I am having trouble retrieving ITypeInfo with the intention of getting the Type's members w/o using the Interop assemblies.
See attached.
Solved by SW:
SolidworksApi macrosAssembly asm = typeof(SolidWorks.Interop.sldworks.SldWorksClass).Assembly;
IntPtr ukwn = Marshal.GetIUnknownForObject(comObject);
foreach (Type t in asm.GetTypes())
{
Guid gid = t.GUID;
if (t.IsInterface & gid != Guid.Empty)
{
IntPtr oPtr = IntPtr.Zero;
Marshal.QueryInterface(ukwn, ref gid, out oPtr);
if (oPtr != IntPtr.Zero)
return t;}
}
return null;