select elements of different component enclosed within different component's CAD surfaces through script
Answers
-
Hello @ATLURI BHARATH KUMAR ,
I have created a script for our models, which will sort the FE-Components to a Part based if the FE-Mesh is within one solid (of one component) of the Part.
Procedure:
Create a list with all components that contains solids
Create a list with all components that contains meshLoop through all components with the mesh and pick 50 random nodes (to increase speed) from the mesh. Check with every solid, if a certain percentage of nodes are within a solid (command "set isInSolid [hm_ispointinsidesolid $x $y $z $solidId]"). If there are more then 30% of the nodes part of the solid I will organize the component to the part of the solid.
This takes quiet long to go through a bigger model, but I haven't found any other way so far.
BR
Andreas
0 -
But here I have only surfaces not solids. Can you help in this scenario
0 -
ATLURI BHARATH KUMAR said:
But here I have only surfaces not solids. Can you help in this scenario
Haven't tried myself, but I think "hm_getcoordinatesfromnearestsurface" can help you in this case.
https://help.altair.com/hwdesktop/hwd/topics/reference/hm/hm_getcoordinatesfromnearestsurface.htm
0