Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
How do I change the a part material render style within an assembly?
I have tried this below. It changes the name but doesn't update the render style.
Sub Material() Dim oassy As AssemblyDocument Set oassy = ThisApplication.ActiveDocument Dim ocompdef As AssemblyComponentDefinition Set ocompdef = oassy.ComponentDefinition Dim ooccurr As ComponentOccurrences Set ooccurr = ocompdef.Occurrences Dim opartdef As ComponentDefinition Set opartdef = ooccurr.Item(11).Definition opartdef.Material.RenderStyle.Name = "Red" End Sub
Solved! Go to Solution.