Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Drive part level material appearance from an assembly

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
mdiyer
301 Views, 4 Replies

Drive part level material appearance from an assembly

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....

4 REPLIES 4
Message 2 of 5
blandb
in reply to: mdiyer

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

 

Autodesk Certified Professional
Message 3 of 5
mdiyer
in reply to: blandb

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...

 

Message 4 of 5
blandb
in reply to: mdiyer

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.

Autodesk Certified Professional
Message 5 of 5
mdiyer
in reply to: blandb

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)

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report