Problem with inaccessible targets in RoboDK program for UR10 robot

Hello everyone,

I’m working with RoboDK on a trajectory planning process for a UR10 robot with the goal of creating a series of targets around a central point. My code calculates each target using virtual angles and positions the robot accordingly. Even though I used SolveIK to calculate the joint arrays needed and MoveJ_Test to check the reachability of each target before adding it to the program, I still have targets that show an “Unreachable target” warning in RoboDK.

I am using Python code in Pycharm. The code includes:

Using SolveIK to calculate joint positions.
Testing if MoveJ_Test returns a value of 0, indicating that movement is possible.
If the target is unattainable, the code skips it and prints a warning.
Has anyone encountered a similar problem or can recommend another way to check accessibility before adding the target?

Thanks in advance!