Max SDK .net 2015 IBitArray Get the i-th bit method gone

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I was writing a plugin using Max SDK .net wrapper (2012 - EPHERE one). I wanted to see if it would work in 2015 as well so I tried to recompile it using the 2015 dll's. Unfortunately I'm now getting this error:
Cannot apply indexing with [] to an expression of type 'Autodesk.Max.IBitArray'
IBitArray tempBitArray = m_Global.BitArray.Create(numFaces);
...
if (tempBitArray [i] == 1)
It works fine with the EPHERE wrapper but with the 2014/2015 Autodesk.Max.dll it's broken. It seems to be missing this bit in the IBitArray.cs file:
/// <remarks>
/// Gets the i-th bit.
///
/// </remarks>
/// <param name="i">- The index of the bit. If the index is a negative or bigger than the array size, it returns 0 </param>
int this[int i] { get; }
It's just not there... Is there any other way of getting the i-th bit?
Also why did 'NotifyDependents' get renamed to 'NotifyDependents_' in 2015?
Thanks,
Vin