Hello,
I’m trying to write a plugin using the Max SDK .net wrapper. I was using Max 2012 and the EPHERE wrapper until recently when I wanted to see if my plugin would work in 2015 as well. So I installed the trial of 2015 and removed my EPHERE Autodesk.Max.dll reference from my project and added the 2015 one instead. I got this error:
Cannot apply indexing with [] to an expression of type 'Autodesk.Max.IBitArray'
So the [] operator seems to be gone. I installed all the service packs too but nothing changed. I checked the IBitArray.cs file and in the EPHERE wrapper (and also in Max 2013) I find this:
/// <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; }
However when I check the 2014 or 2015 version of IBitArray.cs in Autodesk.Max.dll the method is gone… I’ve checked the SDK documentation and the [] operator is still there, so I’m not sure what is happening?
I’m not too sure what I should do now… Is there another way to get the i-th bit without the [] operator?
Thanks,
Vin