How would one go about changing the units for moment? I have tried the following and it does not work. It will only let you change the force component but not the length component. Is it possible to change both unit components?
RobotUnitData udm = pProjectPrefs.Units.Get(IRobotUnitType.I_UT_MOMENT);
udm.Name = "N*m";
pProjectPrefs.Units.Set(IRobotUnitType.I_UT_MOMENT,udm);
Solved! Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
For these two units (moment, stress) use IRobotUnitComplexData
IRobotUnitComplexData udm = pProjectPrefs.Units.Get(IRobotUnitType.I_UT_MOMENT);
udm.Name = "N";
udm.Name2 = "m";
pProjectPrefs.Units.Set(IRobotUnitType.I_UT_MOMENT,udm);