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

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

Anonymous
Not applicable
436 Views
0 Replies
Message 1 of 1

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

Anonymous
Not applicable

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

0 Likes
437 Views
0 Replies
Replies (0)