// utgår alltid fån partens orginalsystem public static void PositionSelection(Selection sel, Transformation coordinate) { for (int i = 1; i < sel.Count2 + 1; i++) { ((Product)sel.Item2(i).LeafProduct).Position.SetComponents(coordinate.ToTranformationArray()); } }
public static void MoveLeaf(Product leaf, Transformation coordinate) { leaf.Move.MovableObject.Apply(coordinate.ToTranformationArray()); }
// move utgår från Catias xyz system public static void MoveSelection(Selection sel, Transformation coordinate) { var prods = sel.GetLeafProducts().AsProduct(); prods.ForEach(x => x.Move.Apply(coordinate.ToTranformationArray())); }
public static void PositionLeaf(Product leaf, Transformation coordinate) { leaf.Position.SetComponents(coordinate.ToTranformationArray()); }