Hi,
the simple test works fine for me (Creating a basic tool) but all the other
samples produces the following errors:
System.InvalidCastException:
Das Objekt des Typs
"Autodesk.Max.Wrappers.ReferenceMaker"
kann nicht in Typ
"Autodesk.Max.IReferenceTarget"
umgewandelt werden.
bei
Autodesk.Max.Plugins.ReferenceTarget.NotifyDependents(IInterval changeInt, UIntPtr partID, RefMessage message, SClass_ID sclass, Boolean propagate, IReferenceTarget hTarg)
bei Autodesk.Max.Wrappers.ManagedWrapperReferenceMaker.NotifyDependents(ManagedWrapperReferenceMaker* , Interval changeInt, UInt32 partID, UInt32 message, UInt32 sclass, Int32 propagate, ReferenceTarget* hTarg)
System.InvalidCastException:
Das Objekt des Typs
"Autodesk.Max.Wrappers.ReferenceMaker"
kann nicht in Typ
"Autodesk.Max.IReferenceTarget"
umgewandelt werden.
bei
Autodesk.Max.Plugins.ReferenceTarget.GetInterface(IInterface_ID id)
bei Autodesk.Max.Wrappers.ManagedWrapperInterfaceServer.GetInterface(ManagedWrapperInterfaceServer* , Interface_ID* id)
It happens with all versions of the Max.Net SDK + different Visual Studio Versions + different 3D Max Versions + Different Net.Frameworks :-(
And the created MaxDotNetControl (Control Sample) has many NullReferences (Screenshots)
Anybody has an idea?
Attached Files: