RobotStudio SDK CalculateInverseKinematics()

I am trying to use the RobotStudio SDK function CalculateInverseKinematics(), but it keeps returning false even though I know that the targets are reachable. Would like help with a sample program or tips on how to get this function to be used correctly.

I was able to resolve my issue. RobotStudio SDK uses units of meters while RAPID uses units of mm. Once I scaled my units correctly, then CalculateInverseKinematics() started working correctly.