Hello,
I'm trying to develop some code that changes all the part bodies in a CATPart with a group of RGB values. I'm trying to do this with an array but its not functioning correctly. It cycles through the structure and selects each body as intended but does not change the color. I believe its the way I have the values defined in the array:
Dim RGB(21)
RGB(0) = "234,234,234,0"
RGB(1) = "30,49,130,0"
RGB(2) = "147,155,161"
...etc
...For next
Set vis = sel.VisProperties
vis.SetRealColor RGB()
I'm trying to develop some code that changes all the part bodies in a CATPart with a group of RGB values. I'm trying to do this with an array but its not functioning correctly. It cycles through the structure and selects each body as intended but does not change the color. I believe its the way I have the values defined in the array:
Dim RGB(21)
RGB(0) = "234,234,234,0"
RGB(1) = "30,49,130,0"
RGB(2) = "147,155,161"
...etc
...For next
Set vis = sel.VisProperties
vis.SetRealColor RGB()