I’m looking for a way to repeat operation to resolve clash, like: when two objects clash I’d like to move one object a little bit, if it clashes still, then move and so on. Is it possible with Dynamo?
Rather than a guess and check method just use the two elements’ geometry to calculate the necessary distance and move once.
Objects can only be moved with some step. I’ve just given an example with two objects, but there can be more objects, so don’t think it is possible to find a solution instead of moving with some step and check again.
Then you need to explain your exact situation. I still think you could determine a radius of intersection between all elements and move once.
Logically, you don’t have to move a known object a known distance to know where it will end up. You can instead calculate how far it would need to move. Doing this for multiple elements can introduce more complexity, but you’re still dealing with all knowns. Meaning you should be able to calculate a total move for each element just once.