How to find surface IDs of new surface generated?

Akshay Manthekar
Akshay Manthekar Altair Community Member
edited July 2022 in Community Q&A

Hi Guys,

I have a geometry in which surfaces are penetrating into each other. I have created a macro which splits the surface(s) by another surface. As we know, after splitting, new surface ids would be formed. So, I want to delete the new surface IDs which are formed after split operation. 

Can anyone help me which command should I use to know what new surface IDs are formed after splitting?

Your help is much appreciated.

Thanks in advance

Answers

  • Akshay Manthekar
    Akshay Manthekar Altair Community Member
    edited July 2022

    Hi Ben,

    Thanks for the response.

    Can you tell the difference between hm_latestentityid and *createmarklast commands.

    I have read the documentation but couldn't understand it.

    It would be very kind of you if you put it into simple words for me.

     

    Thanks!

     

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited July 2022

    Hi Ben,

    Thanks for the response.

    Can you tell the difference between hm_latestentityid and *createmarklast commands.

    I have read the documentation but couldn't understand it.

    It would be very kind of you if you put it into simple words for me.

     

    Thanks!

     

    Hey Akshay,

    Yeah looks like there is some crossover here.  One of the main differences I see is that hm_latestentityid returns the id when the command is run  and *createmarklast puts it on the mark

    So I think this:

    set node1 [hm_latestentityid nodes]

    and this:

    *createmarklast nodes 1

    set node1 [hm_getmark nodes 1]

    would give you the same result.

    Looks like hm_latestentityid gives you more flexibility because you can go back to not just the last created put up to the latest 99 entities created.

    Hope that helps.