Assign Assembly Components Values based on Unique Instance

I currently have 354 Assembly instances in my model. There are 227 types (certain types have multiple instances). I have identified each Assembly instance with it’s own unique mark value. What I need to do now is apply that mark value to an instance parameter for each component of the assembly.

Below is an image of an assembly instance.

I’d like the Mark value (within each component of the assembly) to match the Mark value set within the Assembly Instance.

I am able to sort the components by Assembly Name as shown in the post below (solved by @Vikram_Subbaiah) . When I have multiple instances of an Assembly Type (Assembly Name), how would I break this down even further and apply the instance value? Thanks in advance for the help!!!

The reason I am looking to do this is because of how Assemblies come into Navisworks. I cannot select an assembly. Rather, each component has a parameter associated to it called Assembly Name (which ties back to the assembly). I want to select these Assemblies by instance, not Type.

I believe I’m 99% there. The issue I’m running into now is if there are two assemblies touching each other.

The highlighted elements below are assigned the Mark value of the adjacent Assembly. All other components are assigned correctly. The red box is an attempt to show what’s composing the assembly.

Any idea how to fix this? Any help would be GREATLY appreciated!

Did you also try it this way?
Set-parameter-value-to-assembly-members
(Assembly.Members is from Clockwork)

1 Like

@Yna_Db THANK YOU! I laughed when I saw the simplicity of your graph vs. mine. Worked like a charm!

2 Likes