I'm automating a motion study using macros. My code can set up the study and run it. I'm trying to figure out how to detect if two components have collided at any point during the motion study. I haven't found any functions in the motion study manager that can do this. I looked at the collisiondetectionmanager and it seems to require the transforms that a part experiences. I haven't found a way to get these transforms from the motion study.
How can I use the Solidworks API to detect collisions within a motion study?