Is there a way to change the visual properties (ex. color) of a connection beams in Mechanical using Scripting API?
I don't think so. In theory you could do your own custom graphics to make a cylinder and change the color, but I think the color of the Mechanical beam is not available for change even in the UI (as of 24.2)
Hi @Mike.Thompson , hi @Ayush Kumar , Has this evolved since this time ? One customer is asking whether there is a way to change the point mass sphere color.
Instead of having it kept grey.
BR, Josselin
I am guessing the reason is the strict meaning of beams and points in FEM. Beams are lines (or two points with a few properties defining an object between them) and don't have a surface, points are points, again, no surface. Naturally the graphics allow something to show (or a GUI wouldn't make sense) but they didn't go so far as to enable default surfaces for enhanced plotting.
What I see is if you have a shell or solid element, you can change the color. Beams/points/nodes, does not seem possible.
With a some unecessary extra work, one could add colored lines and spheres to a mechanical graphic and someone with too much time on their hands could write some script to do it automatically for all beams/points in a model.