Is there a way to drag multiple components at once using drag operator? I can drag one component at a time just fine, but I need to be able to move multiple things at once.
No, I don't believe you can since this API call mimics what the user can do in the interface. You might consider using the MotionStudyManager interface for more complicated motion simulation.
You should use the AddComponent method of the DragOperator to add as many components as you need to move. You'll see one call in this example. Just call it successively and set the AppendFlag to True.
2018 SOLIDWORKS API Help - Rotate Assembly Component on Axis Using IDragOperator::Drag Example (VBA)
Thank you for that information, I can now move multiple components using the same translation vector. I'm having difficulties moving multiple components at once with different translations. I've created 2 drag operators, one to move a component in the positive x direction, and one to move in the negative x direction. I've put them on on tasks, but one drag operator overwrites the other one is ignored. Is there a way to make multiple drag operators run at once?
Thank you, I'll try using the motion simulation instead.
Retrieving data ...