Hey Guys...
i try to edit a "MateLimitPlanarAngleDim"....
I tried to do it like this (the Getter Function works fine):
// Getter Function
double[] _MinMaxValue = new double[3];
double min = _Mate2.MinimumVariation;
double max = _Mate2.MaximumVariation;
MinMaxInitValue[0].Value = (_value + min);
MinMaxInitValue[1].Value = (max - min);
MinMaxInitValue[2].Value = _value;
-----------------------------------------------------------------------------------
// Setter Function
double min = (MinMaxInitValue[0].Value) / 180 * Math.PI;
double max = (MinMaxInitValue[1].Value) / 180 * Math.PI;
double init = (MinMaxInitValue[2].Value) / 180 * Math.PI;
double UpperLimit = max - init;
double LowerLimit = init + min;
int error = 0;
swassembly.EditMate3(_Mate2.Type, _Mate2.Alignment, joints[i].reverse, 0.0, 0.0, 0.0, 0.0, 0.0, init, UpperLimit, LowerLimit, false, true, 0, out error);
swassembly.EditRebuild();
Why doesnt the mate change its values?!?!?!?!
I also tried this:
swassembly.EditMate2(_mate.Type, _mate.Alignment, joints[i].reverse, init, UpperLimit, LowerLimit, 0.0, 0.0, init, UpperLimit, LowerLimit, out error);
Thx for help!!! Hope you can help^^
Best regards,
Simon
SolidworksApi macros