From 058073d13aeaf580b55f75e71ad19020754a947c Mon Sep 17 00:00:00 2001 From: Martin Walters <104021577+waltersma@users.noreply.github.com> Date: Tue, 25 Aug 2026 12:58:26 +0100 Subject: [PATCH 1/3] Update 05_pcb_stacker.py --- examples/gallery/05_pcb_stacker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/gallery/05_pcb_stacker.py b/examples/gallery/05_pcb_stacker.py index c36dc8d13b..3114a8624b 100644 --- a/examples/gallery/05_pcb_stacker.py +++ b/examples/gallery/05_pcb_stacker.py @@ -64,7 +64,7 @@ import tempfile import ansys.meshing.prime as prime -from ansys.meshing.prime.graphics import PrimePlotter +from ansys.meshing.prime.graphics.plotter import ColorByType, PrimePlotter prime_client = prime.launch_prime() model = prime_client.model @@ -92,6 +92,7 @@ display = PrimePlotter() display.plot(model) +display.set_color_by_type(ColorByType.CONNECTIVITY) display.show() sizing_params = prime.GlobalSizingParams(model=model, min=0.5, max=1.0) @@ -170,6 +171,7 @@ display = PrimePlotter() display.plot(model, update=True) +display.set_color_by_type(ColorByType.CONNECTIVITY) display.show() ############################################################################### From 2c3af19492b2ff4bb7ce17742737ffac9bf900d9 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 25 Aug 2026 12:02:18 +0000 Subject: [PATCH 2/3] chore: adding changelog file 1345.documentation.md [dependabot-skip] --- doc/changelog.d/1345.documentation.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/1345.documentation.md diff --git a/doc/changelog.d/1345.documentation.md b/doc/changelog.d/1345.documentation.md new file mode 100644 index 0000000000..56cadd2708 --- /dev/null +++ b/doc/changelog.d/1345.documentation.md @@ -0,0 +1 @@ +Doc: change example default colors From 1959158cc1caa08061f4fa12619bde39eb2b1d79 Mon Sep 17 00:00:00 2001 From: Martin Walters <104021577+waltersma@users.noreply.github.com> Date: Tue, 25 Aug 2026 13:02:59 +0100 Subject: [PATCH 3/3] Update 11_solder_ball.py --- examples/gallery_beta/11_solder_ball.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/gallery_beta/11_solder_ball.py b/examples/gallery_beta/11_solder_ball.py index 1cce386f54..365eed7a21 100644 --- a/examples/gallery_beta/11_solder_ball.py +++ b/examples/gallery_beta/11_solder_ball.py @@ -71,7 +71,7 @@ import tempfile import ansys.meshing.prime as prime -from ansys.meshing.prime.graphics import PrimePlotter +from ansys.meshing.prime.graphics.plotter import ColorByType, PrimePlotter ############################################################################### # Launch Ansys Prime Server @@ -124,6 +124,7 @@ display.plot( model, scope=prime.ScopeDefinition(model=model, label_expression="solder_cyl*,pad*,layer*") ) +display.set_color_by_type(ColorByType.CONNECTIVITY) display.show() ############################################################################### @@ -168,6 +169,7 @@ display = PrimePlotter() display.plot(model, update=True) +display.set_color_by_type(ColorByType.CONNECTIVITY) display.show() ###############################################################################