Tcl command to find the ID's of highlighted entities

Ashwin Pinto_20677
Ashwin Pinto_20677 Altair Community Member
edited September 2023 in Community Q&A

Hello All, 

I wanted to know if there is any direct command to extract the Id's of highlighted entities, Specifically in my case nodes ,

I have tried basic "hm_createmark" command but there is no option to retrieve/Add mark on highlighted entities ,

Please let me know if there any such option , Added an image for reference.

 

Thanks in advance 

image

Regards,

Ashwin

 

Answers

  • Michael Herve_21439
    Michael Herve_21439
    Altair Employee
    edited September 2023

    Hello Ashwin Pinto,

     

    if you do the renumber from the panel with the classic interface, you can get the command for showing the ids once the selection done:

     

    *createmark nodes 1 selection method
    *numbersmark nodes 1 1

     

    Best Regards,

    Michael

  • Ashwin Pinto_20677
    Ashwin Pinto_20677 Altair Community Member
    edited September 2023

    Hello Ashwin Pinto,

     

    if you do the renumber from the panel with the classic interface, you can get the command for showing the ids once the selection done:

     

    *createmark nodes 1 selection method
    *numbersmark nodes 1 1

     

    Best Regards,

    Michael

    Hell Michael,

     

    Thanks for the reply, But this command  "*numbersmark nodes 1 1" is used for displaying the Id's numbers and what I m looking for is a command to retrieve the highlighted node ID or add a mark on the highlighted nodes and then retrieve it.

    For example : There are commands to add mark on entities by either "-by Id" or "-by name", 

    So, I wanted to know if there is any such command like select entity "-by highlight "

    Also I m able to highlight entities using (highlightmark node 1"high" ) command, but unable to find anything to retrieve it, considering I don't have the mark Id used for highlight. 

    Kindly Let me know your thoughts, 

     

    Thanks & Regards,

    Ashwin

     

     

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited September 2023