Automation for Trim Hole macro

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

I wanna make automation of trim hole macro . I will pass node id's and defaut parameters it should create holes automatically. How should i go for this??

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2010

    I wanna make automation of trim hole macro . I will pass node id's and defaut parameters it should create holes automatically. How should i go for this??

    I think it is easier to fill up a hole than to make holes, isn’t it? (I am kidding.)

    So now, you have a point or node as the center, and the diameter or radius. And I assume you wanted to make a hole on 2D mesh, not 3D mesh. What you can do is, make a circle which is a line. Then find an element most near the node, find it’s adjacent, and another layer of adjacent, etc. until the area is big enough than the hole. Then you re-mesh the patch with the line. Then you delete the elements within the circle.

    Test it interactively, and then open the command file to see what happened. Please let us know the method works.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2010

    I think there is command to trim a hole in a mesh. If I remember correctly, look in the nastran panel. In the HM help look for 'Trim Hole Macro'

    I wanna make automation of trim hole macro . I will pass node id's and defaut parameters it should create holes automatically. How should i go for this??