Automatic CPlan import using C#

Hello.

I am struggling with a task I need to make automatic.
My final goal is to have a script that can automize the writing of robotic programs from the 3D model of an assembly.
This assembly is made up of different parts (exported from solidworks) that the robot needs to grab and place on the assembly.
Therfore, I need to know the position and orientation of the part on the assembly.
To do that, I set up a CPlan on every single part model, and then import them on the assembly file. Given the exporting method from solidworks, parts positioned themselves automatically on the assembly. However, CPlans do not follow (I need to use import from file function).
I would like to make this automatic when the 3D model is imported. Is that possible using C# scripting?

Moreover, I need to record the sequence with which parts are imported. I’ve tried using C# scripts, and managed to keep track of RhinoObjects added to the scene using RhinoObjectEventArgs, but I end up with too much information since I only need the name of the object. I am not a professionnal of programming so I might do things wrong.

Can someone tell me if what I plan to do is doeable, and give me tips to achieve this?
Many thanks.

I have no experience in this field, but because no one answered yet, I am still posting an answer. I want to make sure that you are aware of projects like https://www.food4rhino.com/app/furobot, https://www.food4rhino.com/app/furobot, https://www.food4rhino.com/app/robot-components.
Maybe these are all you need.

Thanks for your answer.
I have found what I was looking for in the meantime.
I use a script running every 1 second, which checks if the last line in the command box is a import command, if it is, gets the path out of the command, and then runs a RunScript command.
Thanks again for taking time to reply to my question.