Find duplicate Surfaces

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

Hi all,

I am trying to find duplicate surfaces in a model.

I couldn't find any Tcl command for searching duplicate surfaces, however there is following Tcl command from HyperMesh Desktop Reference Guide which searches faces:

*createmark faces 1  all
*facepreviewduplicates 1 0.1

 

In the status message bar, the message '5 faces are duplicate' appears. 

However my target is to find out the pairs of duplicate surfaces.

Is it possible using HyperMesh Tcl?

 

Best regards,

Mubeen

 

Answers

  • Sanjay Nainani_20973
    Sanjay Nainani_20973 New Altair Community Member
    edited December 2017

    Hello,

     

    Can you please try this

     

    *createmark surfs 1 all

    *surfacemark_duplicate_check 1 1 4 0 0 0.1

    hm_getmark surfs 1

     

    thankyou

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Hello,

     

    Can you please try this

     

     

    *createmark surfs 1 all

    *surfacemark_duplicate_check 1 1 4 0 0 0.1

    hm_getmark surfs 1

     

    thankyou

     

    Hi, 

    thanks for the valuable information.

    I tried this Tcl command. I have surfaces 1,2,3,4,5,6 in model 1. 

    Then I have imported another geometry model with surfaces 7,8,9,10,11,12 ..,15.

    Surfaces 1-4 and 7-10 are identical, but these commands (*surfacemark_duplicate_check) returned 

    7 8 9 10 

    only.

    I checked the documentation for this command, but couldn't find any reason why it is not returning the duplicates of these  7 8 9 10 surfaces.

  • tinh
    tinh Altair Community Member
    edited December 2017

    Please simply change the option from '4' to '10'   (0b1010)

    You have to createmark surfs 1 1-6 

    And createmark nodes 2 1-15

    Then surfacemark_dup... 1 2 0b1010

     And hmgetmark surfs 1 and 2