[Gu...] Posted July 26 Share Posted July 26 Hello, I'm looping the creation of sections in ZEISS Inspect Correlate, as follows the code below: But as you can see, this way all of the sections have the same color due to having the same binary color properties. I'd like to cycle through different colors but I don't know the binary codes for each color or if there's another way to do it. Regards, Gustavo Link to comment Share on other sites More sharing options...
[Ma...] Posted July 31 Share Posted July 31 (edited) Hello, you can delete the line with 'properties' and set the line color in the diagram with: gom.script.sys.edit_properties ( data=[gom.app.project.inspection[f'Section {i}']], # Adjust colors as desired r = 0 g = 100 b = 255 diagram_color=gom.Color (r, g, b, 255)) The last value in gom.Color() is the opacity. Please refer to ZEISS Quality Tech Guide: Diagram for background information. Best regards, Matthias Edited July 31 Link to comment Share on other sites More sharing options...
[Gu...] Posted July 31 Author Share Posted July 31 Please sign in to view this quote. Thank you, Matthias! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in