How can i move 2parts in a new component in spaceclaim using for loop when multipleparts are there?
AmrishKulkarni
Member Posts: 2 **
selection = Selection.Create(result.CreatedBodies)
component = ComponentHelper.MoveBodiesToComponent(selection, Info5)
selection = BodySelection.Create(GetRootPart().GetBodies("Bolt"))
result = ComponentHelper.MoveBodiesToComponent(selection, component.CreatedComponents[0], False, Info6)
Tagged:
0
Answers
-
@Rajesh Meena - can you assist?
0 -
Below code can help me achieve component movement shown in image below:
comp_sel = Selection.Create((GetRootPart().Components))
ComponentHelper.MoveBodiesToComponent(comp_sel)I am moving all component but you can filter based on name or index.
0