PCMTreeSetPartRegimes function

Set regimes for the parts in a tree