Modify Main Part

Is there a way to change Main Part of Assembly through Grasshopper.

Hi, you’d need a script for that. The method is

    myAssembly.SetMainPart(mainPart);

Here’s a C# component that uses this:

AssemblySetMainPart.gh (5.3 KB)

The new main part needs to be part of the assembly already.

Cheers,

-b

Thank you.