Has anyone used LayerTable.GetUnreconciledLayers method?
Of course the 'great' documentation shows to pass
AcArray<AcDbObjectId,AcArrayMemCopyReallocator<AcDbObjectId>>* modopt(IsImplicitlyDereferenced) idArray
with methods only used in IL.
AcArray<AcDbObjectId,AcArrayMemCopyReallocator<AcDbObjectId>>*
is what the managed ObjectIdCollection wraps.
But, because it was declared to take a pointer, you can't call it from verifiable managed code.
You should be able to P/Invoke the native member function directly, using something like this:
public static class MyExtensions
{
[DllImport("acdbxx.dll", CallingConvention=CallingConvention.ThisCall, EntryPoint=".....")]
public static extern void getUnreconciledLayers( IntPtr layerTable, IntPtr ids );
public static void GetUnreconciledLayers( this LayerTable ltr, ObjectIdCollection ids )
{
getUnreconciledLayers( ltr.UnmanagedObject, ids.UnmanagedObject );
}
}