Hi
I am trying to develop some code to read the current feature face render style, and change the face render style if required. I have managed to get the SetRenderStyle method to work, but cannot get the GetRenderStyle to work. Attached is my code, What do I need to add to read the current RenderStyle?
Sub Faces()
Dim oPartDoc As Inventor.PartDocument
Dim newRS As RenderStyle
Dim oldRS As RenderStyle
Set oPartDoc = ThisApplication.ActiveDocument
Set newRS = oPartDoc.RenderStyles.Item("Gray")
Dim oFeature As Object
Dim oFace As Inventor.Face
For Each oFeature In oPartDoc.ComponentDefinition.Features
If oFeature.Name = "MyFeature" Then
For Each oFace In oFeature.Faces
Call oFace.SetRenderStyle(kOverrideRenderStyle, newRS)
Next oFace
End If
Next oFeature
End Sub