Duplicate_elements_TCL_command

Altair Forum User
Altair Forum User
Altair Employee
edited January 2021 in Community Q&A

hi,


I need to delete all duplicate elements using tcl command. I am new to tcl coding. 

*createmark elements 1 'displayed'
*createmark elements 2
*elementtestduplicates elements 1 2 1

I copied these command line from command.tcl. But i am not sure how to mark the failed element and delete it using tcl command

Tagged:

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited August 2020
     *createmark elements 1 'displayed' *createmark elements 2 *elementtestduplicates elements 1 2 1 set elist [hm_getmark elems 2]  puts 'Elems to delete: $elist'

    1377909642_Screenshotfrom2020-08-1208-48-22.png.639758c673ed2552a287381f5579196b.png