Hello,
I am currently working on the topic of "drawing-less production" again and would like to follow up on this german thread.
The macro colors my extrusions and drill holes. A color is assigned to the feature.
e.g.
tmpHole.Appearance = oDoc.AppearanceAssets.Item("Red")
The holes that are patterned or mirrored, however, are not recognized as holes.
Here I can give the color of the parent element to the complete pattern
e.g. for rectangular patterns
For Each tmpRPattern In oFeatures.RectangularPatternFeatures
tmpRPattern.Appearance = tmpRPattern.Definition.ParentFeatures.Item(1).Appearance
Next
However, this only works as long as the pattern is only for one element or all elements have the same color.
With the pattern as in the picture, this doesn't work anymore, because I can't find a way to handle every single hole.

The goal would be to color the holes according to the parent elements. So all drillings left in yellow, the middle column in purple and the drillings right in magenta.
Basically, it wouldn't matter if the feature or the corresponding surfaces were colored (what would be the differences here?).
Does anyone have an idea and can give me a hint?
Enclosed is the ipt ( incl. code), which I am testing with.
greetings,
Aleks
Aleksandar Krstic
Produkt- und Projektmanager

