TCL/TK

Thiago_20391
Thiago_20391 New Altair Community Member
edited April 3 in Community Q&A

Hello everyone! I would like to create a code to be used in HyperMesh. I made a geometry, put the mesh on the entire geometry, and mirrored it in relation to the z-axis. Now comes the part of the code, I want a code that when selecting several surfaces, the code will identify all the elements and all the nodes that were created on the selected surfaces, and will also identify all the nodes and elements that were mirrored. Once all these nodes and elements have been identified, the program will automatically hide all the nodes and elements that are not part of the selected surfaces, and that were not mirrored from these nodes and elements, leaving visible only the nodes and elements of the selected surfaces and the nodes and elements that were mirrored from these same nodes and elements of the selected surfaces.

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited April 3

    After the mirror there is no connection between the mirrored and original, so I don't know of a way to pick those unless you are keeping track manually. Maybe store centroids or bounding boxes then mirroring the coordinates in the code?