I've seen a few posts about how you can change part level materials from the assembly level, but it appears that "Appearance" is not a member of the iLogic interface....
Solved! Go to Solution.
Solved by blandb. Go to Solution.
The code below should change the component in the assembly with name "Base" to Red.
SyntaxEditor Code Snippet
If Base_color = "Red" Then Component.Color("Base:1")= "Red" End If
Or, Are you wanting a specific feature to change color?
Hope that helps
Thanks for the reply. Although your suggestion does change the color of each component at the assembly level, I need it to change the Appearance at the part level.
I have a box assembly, with individual parts for the bottom, sides, etc.
The material for the individual parts can either be MDF or Particle board, the Finish (appearance) can be either black or white.
I want my parts list to have separate columns for both the material selection and the finish (appearance).
Therefore from the assembly level, I'd like the user to be able to choose the box material and finish.
I can change the material thru ilogic, but not the appearance...
At the part level I created (2) multi-value text params called "Color" and "Material".
SyntaxEditor Code Snippet
If Material = "MDF" Then iProperties.Material = "Gold" Else iProperties.Material = "Glass" End If If Color = "Black" Then iProperties.PartColor = "Black" Else iProperties.PartColor = "White" End If
At the assembly I created the same (2) multi-value params. Then created the rule:
SyntaxEditor Code Snippet
Parameter("deleteme:1", "Material")=Material Parameter("deleteme:1", "Color") = Color
That should hopefully do what you are looking for.
With your help, this is what I came up with:
(ASSEMBLY LEVEL - iLogic Rule)
Parameter("Right Side:1", "Material") = Material Parameter("Left Side:1", "Material") = Material Parameter("Rear:1", "Material") = Material Parameter("Front:1", "Material") = Material Parameter("Right Side:1", "Finish") = Finish Parameter("Left Side:1", "Finish") = Finish Parameter("Rear:1", "Finish") = Finish Parameter("Front:1", "Finish") = Finish Parameter("Bottom:1", "Finish") = Finish
(ASSEMBLY - Parameters)
Materials (TEXT field) (Multi-Value List) MDF Medium Density Fiberboard, Particleboard
Finish (TEXT field) (Multi-Value List) Lacquer - Black, Lacquer - White
(PART LEVEL - iLogic Rule)
iProperties.Material = Material iProperties.PartColor = Finish
(PART LEVEL - Parameters)
Material (TEXT field)
Finish (TEXT field)