Arrange Substyle components to layers by Python scripting

Hi everybody. Is it possible to arrange substyle components to layers by python and change projection/section colors to “By Layer”?
Usually this operation looks like this:


I’ve created script, which create layer and sublayers with random colors and names accordingly to names of substyle components, but can’t find any method/command in va namespace to going further.
Any help appreciated
VisualARQ Arranging SubComponents.py (1.7 KB)
.

Hi @Ipatkov_Andrey,

Currently, there is no public API to modify the attributes of styles and subcomponents. I’ll add your vote to our wish list, and we’ll let you know when we implement this feature.

Thanks!

Enric