Find the edges of hole

brahmadev
brahmadev Altair Community Member
edited October 2020 in Community Q&A

Hello Altair Team,

 

I'm working on a script to find the edges of holes. But I'm unable to find the edges of the hole when a rib is attached to it.

Let me explain it with a picture.

 

When there is a hole (like a tube hole). I was able to caputure the eges of the hole. As in this picture ( ).

But when I add a rib to the above shown picture to the tube hole, I was not able to read the edges of the same hole. Please refer this picture () for a better unerstanding.

 

Please guide me to find a way to either create a plot elements around the hole or atleast a way yo retrieve the node IDs of the hole.

 

Command Used:

*findloops

 

 

 

Thanks in advance.
 

Regards,

Brahmadev.

 

Unable to find an attachment - read this blog

Answers

  • tinh
    tinh Altair Community Member
    edited February 2019

    Hi

    Did you try hm_holedetectioninit?

  • brahmadev
    brahmadev Altair Community Member
    edited February 2019

    Hi

    Did you try hm_holedetectioninit?

    Yeah !

    Also tried hm_ce_getholes as well as *findholesshell

     

    even they were not working

     

     

     

  • tinh
    tinh Altair Community Member
    edited February 2019

    Use *findedges

  • brahmadev
    brahmadev Altair Community Member
    edited February 2019

    Use *findedges 

    Isn't there any other option avaiable than this findedge.

     

    Because using the find edges i'm getting problem with the rib edge nodes and also with the flange edge ids

     

  • tinh
    tinh Altair Community Member
    edited February 2019

    Did you try removing ribs?

  • brahmadev
    brahmadev Altair Community Member
    edited February 2019

    Did you try removing ribs?

    Yes !

     

    If I remove the ribs it was able to detect the hole edges but not with the ribs (as shown in the above mentioned pictures.)

     

    I even tried with the hm_getedgeloops, still no use....

    Are there any other API's that can either detect only the edge of any given component ?

     

     

  • sandeepballiwar
    sandeepballiwar New Altair Community Member
    edited February 2019

    In hm_getedgeloops try not to give any loop type and feature angle

     

    *createmark elems 1 displayed;

    'hm_getedgeloops elems markid=1'

     

    When I tried for a similar model with rib it works fine. 

     

  • brahmadev
    brahmadev Altair Community Member
    edited February 2019

    In hm_getedgeloops try not to give any loop type and feature angle

     

    *createmark elems 1 displayed;

    'hm_getedgeloops elems markid=1'

     

    When I tried for a similar model with rib it works fine. 

     

     

    Thing is like i may have  more than 2 ribs for any given tube hole.

    So when there is only 1 rib attached to the hole tube, the above code is working sometimes and sometimes it isn't .