Maybe you can start with this demonstration example.
Thank you - I do understand the logic it just seems it takes forever when you add parametric restrictions which is a bit surprising to me.